Spring Physics

A damped spring. Reduce friction to zero, and note that the simulation becomes unstable. Why?

javascript programming
exa_11_spring