Open In App

JavaScript Math asinh() Method

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:

Below is an example of the Math.asinh( ) Method.



Example 1: This example shows the hyperbolic arc-sine of the numbers passed as parameters.




// Here different values is being used for
// getting hyperbolic sine function's values.
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.




// Here different values is being used for
// getting hyperbolic sine function's values.
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.




// Here different values is being used for
// getting hyperbolic sine function's values.
console.log(Math.asinh(0));

Output
0

We have a complete list of Javascript Math Objects methods, to check those please go through this Javascript Math Object Complete reference article.


Article Tags :