JavaScript tutorial:
atan method

 

Applies to: Math Object

The atan method is use to get the arctangent of a number.

Syntax

Math.atan(number) The number argument is a numeric expression for which the arctangent is sought.

Return value

Returns the arctangent of a number.

Example

The return value is the arctangent of its numeric argument.

See also: acos Method, asin Method, atan2 Method, cos Method, Math Object Methods, sin Method, tan Method