You may have confused cotangent with cosine. This value is equal to . To calculate cotangent, use: