This applet simulates the motion of a spring having a ratio b of stiffness to mass. Motion is approximated by uniform acceleration over time intervals dt=0.07.
Adjust the initial position, initial velocity and ratio of stiffness to mass. How do these coefficients affect amplitude, frequency and phase of oscillation?
Adapted from "Harmonic oscillator - The Spring" by a.zampa.