1 2 3 4 5 6 7
//S.H.M //a=-25*s omega=5 //Period T=(2*%pi)/(5) //sec f=(1/T) //osc. per second printf("\nT=%.3f sec\nf=%.3f osc. per second",T,f)