The equations used here are :

Step 1) Enter the starting conditions :

Mass (m) = kg Spring constant (K) = N/m Initial Position (x0) = m (R/L = +/-) Initial Velocity (v0) = m (R/L = +/-) Step 2) Update the graph values :

Based on your choices above, these values are calculated: Omega (w) = rad/sec Amplitude (A) = meters Phase angle (phi) = radians Period (T) = sec E total = Joules

Things to try :