Returns the cosine of a number.
cos(value)
value
A value in radians, which can be any number type.
A floating-point or a complex number.
cos(PI)
-1
cos(Fraction(1, 2))
0.8775825618903727161162815826038297
cos(2+sqrt(-1))
-0.6421481247155199648448006869622787-1.0686074213827783395974400337839513*I