Cosine function on the unit circle