Full name
math.atan
Library
math
Syntax
math.atan(x)
Description
The math.atan function returns the angle in radians whose tangent is x.
Parameters
- x: Tangent of the angle to be obtained.
Result
The math.atan function returns a real number in the closed interval [-π / 2, π / 2].
Examples
Below are several examples of how to use this function:
math.atan(-10)
-1.4711276743037347
math.atan(0)
0.0
math.atan(1)
0.7853981633974483