JavaScript Math.acosh()

Examples

let x = Math.acosh(1);
Try it Yourself »
let x = Math.acosh(2);
Try it Yourself »

Description

The Math.acosh() method returns the hyperbolic arc-cosine of a number.

If the parameter is less than 1, the method returns NaN.



Syntax

Math.acosh(x)

Parameters

Parameter Description
x Required.
A number.

Return Value

Type Description
NumberThe hyperbolic arc-cosine of the parameter.
NaN if the parameter is less than 1 or not numeric.


Browser Support

Math.acosh() is an ECMAScript1 (ES1) feature.

ES1 (JavaScript 1997) is fully supported in all browsers:

Chrome Edge Firefox Safari Opera IE
Yes Yes Yes Yes Yes Yes


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.