Period of sinusoidal functions from equation