Name

Math.atan() — compute an arctangent

Synopsis

Math.atan(x)

Arguments

x

Any number.

Returns

The arc tangent of the specified value x. This return value is between -π/2 and π/2 radians.

Get JavaScript: The Definitive Guide, 6th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.