Just for viewing purposes. You can store and calculate this formula only inside the application.
simple harmonic oscillator
/* t: time at which the displacement, velocity and acceleration are computed A: amplitude w_0: angular frequency of the oscillator Φ: Phase, determines starting point /conditions at time t=0 */ /*displacement at time t */ x_t = A*COS(w_0*t + Φ) /* velocity at time t */ v_t = -A*w_0*SIN(w_0*t-Φ) /*acceleration at time t */ ...
A harmonic oscillator is a system in which the restoring force is direct proportional to the displacement, such as a mass attached to a spring.