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, this 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. Number.

Technical details

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

Webbläsarstöd

Math.acosh() Är ES1-funktioner (JavaScript 1999). Alla webbläsare stöder det fullt ut:

Chrome IE Edge Firefox Safari Opera
Stöd Stöd Stöd Stöd Stöd Stöd

Relaterade sidor

Tutorial:JavaScript matematik