Home >>JavaScript Math Reference >JavaScript acosh() Method

JavaScript acosh() Method

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 Values

Parameter Description
x This is a required parameter. It defines the given input number.

Browser Support

Method Chrome Edge Firefox Safari Opera
acosh() 38 12 25 8 25
Here is an example of JavaScript acosh() method:
<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>
Output:

Click the button to see the Output.

Example 2:
<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>
Output:

Click the button to see the Output.


No Sidebar ads