Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
math.tan
math.tan
Return the tangent of x (in radians).
Python 3.13
1
math
.
tan
(
x
)
x
The angle in radians.
Examples
Python 3.13
1
2
import
math math
.
tan
(
math
.
pi
/
4
)
1.0