Math.acosh

Returns the inverse hyperbolic cosine of a number.

Syntax

acosh(value)

Parameters

Return value

An inverse hyperbolic cosine of a number.

If the value is less than 1, returns NaN.

Example

Math.acosh(10)
2.993222846126381
Math.acosh(0)
NaN
Math.acosh(Infinity)
Inifinity