結果 : simple harmonic oscillator function