cos

Returns the cosine of a number.

Syntax

cos(value)

Parameters

Return value

A floating-point or a complex number.

Examples

cos(PI)
-1
cos(Fraction(1, 2))
0.8775825618903727161162815826038297
cos(2+sqrt(-1))
-0.6421481247155199648448006869622787-1.0686074213827783395974400337839513*I