Python Function Reference

math.cos
Return the cosine of x (in radians).
Python 3.13
math.cos(x)
x
The angle in radians.
Examples
Python 3.13
>>> import math
>>> math.cos(0)
1.0