The mathAtan() function returns the arctangent of a number.
mathAtan()
0.12.0
A number
The arctangent (in radians) of the given number, a value between -π/2 and π/2
mathAtan(0); // 0mathAtan(1); // 0.7853981633974483 (approximately π/4)mathAtan(Infinity); // 1.5707963267948966 (π/2) Copy
mathAtan(0); // 0mathAtan(1); // 0.7853981633974483 (approximately π/4)mathAtan(Infinity); // 1.5707963267948966 (π/2)
Returns the arctangent of a number.
A numeric expression for which the arctangent is needed.
The
mathAtan()
function returns the arctangent of a number.Since
0.12.0
Param: x
A number
Returns
The arctangent (in radians) of the given number, a value between -π/2 and π/2
Example