JavaScript Math acosh() Method
Last Updated :
01 Aug, 2023
Javascript Math.acosh() method is used to get the hyperbolic arc-cosine of a number. The hyperbolic arc-cosine is known by many names such as hyperbolic inverse cosine and acosh. It is the inverse of the hyperbolic cosine method i.e., The inverse hyperbolic cosine of any value say x is the value y for which the hyperbolic cosine of y is x.
if y = acosh(x) then x = cosh(y) For all x≥1, we have acosh(x)=ln(x+√ x2-1 )
Syntax:
Math.acosh(x)
Parameters: This method accepts a single parameter:
- x: Here x is a number whose hyperbolic arc-sine is going to be calculated.
Example: Below is an example of the Math acosh( ) Method.
JavaScript
console.log(Math.acosh(2));
console.log(Math.acosh(1));
console.log(Math.acosh(3));
console.log(Math.acosh(10));
|
Output
1.3169578969248166
0
1.7627471740390859
2.993222846126381
Example: Here output 0 is the hyperbolic arc-cosine of numbers.
Javascript
console.log(Math.acosh(5));
console.log(Math.acosh(11));
console.log(Math.acosh(1.5));
console.log(Math.acosh(0));
|
Output
2.2924316695611777
3.088969904844603
0.9624236501192069
NaN
We have a complete list of Javascript Math Objects methods, to check those please go through this Javascript Math Object Complete reference article.
Supported Browsers:
- Google Chrome 38.0
- Firefox 25.0
- Opera 8.0
- Safari 25.0
Share your thoughts in the comments
Please Login to comment...