Compute cosine of an angle in degrees.