English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript Math.acosh() Method

 JavaScript Math Object

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

If the value of the passed parameter is less than1, then this method will return NaN.

Because acosh() is a static method of Math, you always use it asMath.acosh(), not as a method of the created Math object.

Syntax:

Math.acosh(x)
Math.acosh(3);
Test See‹/›

Browser Compatibility

All browsers fully support the Math.acosh() method:

Method
Math.acosh()isisisisis

Parameter Value

ParameterDescription
xValue

Technical Details

Return Value:a number if the parameter is less than1, then it isNaN
JavaScript Version:ECMAScript 1

More examples

For less than1The value, Math.acosh() returns NaN:

Math.acosh(-1);// NaN
Math.acosh(0); // NaN
Math.acosh(0.5);   // NaN
Math.acosh(1); // 0
Math.acosh(2); // 1.3169578969248166
Test See‹/›

 JavaScript Math Object