Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
math.cos
math.cos
Return the cosine of x (in radians).
Python 3.13
1
math
.
cos
(
x
)
x
The angle in radians.
Examples
Python 3.13
1
2
import
math math
.
cos
(
0
)
1.0