Home >>JavaScript Math Reference >JavaScript acosh() Method
JavaScript acosh() method is used to return the hyperbolic arccosine of a given input number. If the given input parameter x is less than 1 then the method will return NaN.
Syntax:Math.acosh(x)
Parameter | Description |
---|---|
x | This is a required parameter. It defines the given input number. |
Method | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
acosh() | 38 | 12 | 25 | 8 | 25 |
<html> <body> <p>Click the button to see the Output.</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { document.getElementById("demo").innerHTML = Math.acosh(3.14); } </script> </body> </html>
Click the button to see the Output.
<html> <body> <p>Click the button to see the Output.</p> <button onclick="myFunction1()">Try it</button> <p id="demo1"></p> <script> function myFunction1() { document.getElementById("demo1").innerHTML = Math.acosh(.54); } </script> </body> </html>
Click the button to see the Output.