Javascript - Math acosh() Method

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

Description

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

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

Syntax

Math.acosh(x)

Parameter Values

Parameter Require Description
x Required. A number

Return

A Number, or NaN if the parameter is less than 1

Example

Return the hyperbolic arccosine of a number:

Demo

//display the hyperbolic arccosine of 2

console.log(Math.acosh(2));

Result