Function atan #
Calculate the inverse tangent of a value.
To avoid confusion with matrix arctangent, this function does not apply to matrices.
Syntax #
math.atan(x)
Parameters #
Parameter | Type | Description |
---|---|---|
x |
number | BigNumber | Complex | Function input |
Returns #
Type | Description |
---|---|
number | BigNumber | Complex | The arc tangent of x |
Throws #
Type | Description —- | ———–
Examples #
math.atan(0.5) // returns number 0.4636476090008061
math.atan(2) // returns number 1.1071487177940904
math.atan(math.tan(1.5)) // returns number 1.5