English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
Math.acosh(x)
Math.acosh(3);Test See‹/›
All browsers fully support the Math.acosh() method:
Method | |||||
Math.acosh() | is | is | is | is | is |
Parameter | Description |
---|---|
x | Value |
Return Value: | a number if the parameter is less than1, then it isNaN |
---|---|
JavaScript Version: | ECMAScript 1 |
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.3169578969248166Test See‹/›