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
Number:
value whose arc tangent is to be returned.
Returns
Number: arc tangent of the given value.
This page is generated from the comments in src/math/trigonometry.js . Please feel free to edit it and submit a pull request!