the sin and tan functions take parameters in radians. Slight fix