math.tan()
Anonymous contributor
Anonymous contributor2 total contributions
Anonymous contributor
Published Jun 22, 2021Updated Aug 6, 2023
Contribute to Docs
Returns the tangent of input numeric x, measured in radians.
Syntax
math.tan(x)
Example 1
Use math.tan()
to return the tangent of the integer 5
measured in radians:
import mathprint(math.tan(5))# Output: -3.380515006246586
Example 2
Use math.tan()
to return the tangent of the float 5.5
measured in radians:
import mathprint(math.tan(5.5))# Output: -0.995584052213885
Codebyte Example
The following code is runnable and demonstrates the use of math.tan()
:
All contributors
- Anonymous contributorAnonymous contributor2 total contributions
- christian.dinh2481 total contributions
- Anonymous contributorAnonymous contributor3077 total contributions
- Anonymous contributorAnonymous contributor194 total contributions
- Anonymous contributor
- christian.dinh
- Anonymous contributor
- Anonymous contributor
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.