how to calculate a sinusoidal function - Search