Calculates the arc tangent of a number.
atan()
is the inverse of tan(). It expects input values in the range of -Infinity to Infinity. By default, atan()
returns values in the range -π ÷ 2 (about -1.57) to π ÷ 2 (about 1.57). If the angleMode() is DEGREES
then values are returned in the range -90 to 90.
Examples
Syntax
atan(value)
Parameters
value
value whose arc tangent is to be returned.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/trigonometry.js and open a pull request!