Returns the cosine of x (assumed to be in radians).