JavaScript Math asinh() Method
Last Updated :
01 Aug, 2023
JavaScript Math.asinh() method is used to get the hyperbolic arc-sine of a number. The hyperbolic arc-sine is known by many names such as hyperbolic inverse sine and asinh. It is the inverse of the hyperbolic sine function i.e., The inverse hyperbolic sine of any value says x is the value y for which the hyperbolic cosine of y is x.
if y = asinh(x) then x = sinh(y) We have, acosh(x)=ln(x+√ x2+1 )
Syntax:
Math.asinh(x)
Parameters: This function accepts a single parameter:
- x: Here x is a number whose hyperbolic arc-sine is going to be calculated.
Below is an example of the Math.asinh( ) Method.
Example 1: This example shows the hyperbolic arc-sine of the numbers passed as parameters.
JavaScript
console.log(Math.asinh(3));
console.log(Math.asinh(22));
console.log(Math.asinh(-1));
console.log(Math.asinh(1));
|
Output
1.8184464592320668
3.7847057630994327
-0.881373587019543
0.881373587019543
Example 2: In this example, a positive integer “2” is passed as a parameter in the math.asinh() function.It returns the hyperbolic arc-sine of the passed parameter.
Javascript
console.log(Math.asinh(2));
|
Output
1.4436354751788103
Example 3: In this example, “0” is passed as a parameter in the math.asinh() function.It returns the hyperbolic arc-sine of the passed parameter.
Javascript
console.log(Math.asinh(0));
|
We have a complete list of Javascript Math Objects methods, to check those please go through this Javascript Math Object Complete reference article.
- Google Chrome 38.0
- Firefox 25.0
- Opera 8.0
- Safari 25.0
Share your thoughts in the comments
Please Login to comment...