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 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.

Syntax:

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

Browser Compatibility

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

Method
Math.atan()YesYesYesYesYes

Parameter Value

ParameterDescription
xValue

Technical Details

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

 JavaScript Math Object