JavaScript atanh() method

Definition and usage

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

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

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

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

Example

Returns the hyperbolic arctangent of a specified number:

Math.atanh(0.5);

Try it yourself

Syntax

Math.atanh(x)

Parameter value

Parameter Description
x Required. Number.

Technical details

Return value: Number, or NaN, or Infinity, or -Infinity.
JavaScript version: ECMAScript 6

Browser Support

Math.atanh() Is an ES6 Feature (JavaScript 2015). All modern browsers support it:

Chrome Edge Firefox Safari Opera
Support Support Support Support Support

Related Pages

Tutorial:JavaScript Math