Math.acosh() function in JavaScript


The acosh() function of the Math object accepts a number and returns its hyperbolic arc cosine value in radians. To convert the resultant value into degrees, multiply it with 180 and divide the result by 3.14159 (pi value).

Syntax

Its Syntax is as follows

Math.acosh(0.5)

Example

 Live Demo

<html>
<head>
   <title>JavaScript Example</title>
</head>
<body>
   <script type="text/javascript">
      var result = Math.acosh(90);
      document.write("Hyperbolic arccosine value: "+result);
      document.write("<br>");
      document.write("Hyperbolic arccosine value in degrees: "+result*180/Math.PI);
   </script>
</body>
</html>

Output

Hyperbolic arccosine value: 5.192925985263684
Hyperbolic arccosine value in degrees: 297.5327422794238

Updated on: 25-Jun-2020

29 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements