Amplitude of sinusoidal functions from equation