Simple harmonic oscillator

Alfredo Louro
This shows the motion of a mass suspended from a spring. An accurate solution requires a small time step and RK4 as the integration algorithm.