Computer >> Computer tutorials >  >> Programming >> Javascript

Math.asinh() function in JavaScript


The asinh() function of the Math object accepts a number and returns its hyperbolic arc sine 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.asinh(0.5)

Example

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

Output

Hyperbolic arcsine value: 5.192987713658941
Hyperbolic arcsine value in degrees: 297.53627905594817