How To Write Sinusoidal Function