harmonic oscillations using complex numbers 981492