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 value between-π/ 2and π/ 2numeric values between radians.
Since atan() is a static method of Math, you always use it asMath.atan(),not used as a method of creating the Math object.
Math.atan(x)
Math.atan(2);Test See‹/›
All browsers fully support the Math.atan() method:
Method | |||||
Math.atan() | Yes | Yes | Yes | Yes | Yes |
Parameter | Description |
---|---|
x | Value |
Return value: | Inverse tangent of a given number (in radians) |
---|---|
JavaScript Version: | ECMAScript 1 |