English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript Math.atan() Method

 JavaScript Math Object

Math.atan()The method returns the arctangent value of a number (in radians).

The Math.atan() method returns a numeric value between -π/2 and π/2 radians.

Since atan() is a static method of Math, you always use it asMath.atan()Instead of using it as a method of the created Math object.

Syntax:

Math.atan(x)
Math.atan(2);
Test and see‹/›

Browser Compatibility

All browsers fully support the Math.atan() method:

Method
Math.atan()YesYesYesYesYes

Parameter Value

ParameterDescription
xNumber

Technical Details

Return value:Inverse tangent (in radians) of a given number
JavaScript Version:ECMAScript 1

 JavaScript Math Object