JavaScript acosh() method

Definition and usage

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

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

Example

Returns the hyperbolic inverse cosine of a number:

Math.acosh(2);

Try it yourself

Syntax

Math.acosh(x)

Parameter value

Parameter Description
x Required. Number.

Technical details

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

Browserv understøttelse

Math.acosh() Er ES1-karakteristik (JavaScript 1999). Alle browsere understøtter det fuldt ud:

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

Relaterede sider

Tutorial:JavaScript matematik