JavaScript acosh() method

Definition and usage

acosh() The method returns the hyperbolic arccosine of a number.

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

Example

Returns the hyperbolic arccosine of a number:

Math.acosh(2);

Try it yourself

Syntax

Math.acosh(x)

Parameter value

Parameter Description
x Required. A number.

Technical details

Return value: If the parameter is less than 1, NaN is returned.
JavaScript version: ECMAScript 6

Browser Support

Math.acosh() Is an ES1 feature (JavaScript 1999). All browsers fully support it:

Chrome IE Edge Firefox Safari Opera
Support Support Support Support Support Support

Related Pages

Tutorial:JavaScript Mathematics