THE WORLD'S LARGEST WEB DEVELOPER SITE

JavaScript atanh() Method

❮ JavaScript Math Object

Example

Return the hyperbolic arctangent of a specified number:

Math.atanh(0.5);
Try it Yourself »

Definition and Usage

The atanh() method returns the hyperbolic arctangent of a number.

Note: If the parameter x is greater than 1, or less than -1, the method will return NaN.

Note: If the parameter x is 1, the method will return Infinity.

Note: If the parameter x is -1, the method will return -Infinity.


Browser Support

Method
atanh() 38 12 25 8 25

Syntax

Math.atanh(x)

Parameter Values

Parameter Description
x Required. A number

Technical Details

Return Value: A Number, or NaN, or Infinity, or -Infinity
JavaScript Version: ECMAScript 6

❮ JavaScript Math Object