English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
Math.atan(x)
Math.atan(2);Test and see‹/›
All browsers fully support the Math.atan() method:
Method | |||||
Math.atan() | Yes | Yes | Yes | Yes | Yes |
Parameter | Description |
---|---|
x | Number |
Return value: | Inverse tangent (in radians) of a given number |
---|---|
JavaScript Version: | ECMAScript 1 |