JavaScript Math asinh()

The JavaScript Math.asinh() function returns the hyperbolic arcsine of a number.

asinh() performs the inverse operation of the Math.sinh function.

The syntax of the Math.asinh() function is:

Math.asinh(x)

asinh(), being a static method, is called using the Math class name.


Math.asinh() Parameters

The Math.asinh() function takes in:

  • x - A number

Return value from Math.asinh()

  • Returns the hyperbolic arcsine of the given number.

Example: Using Math.asinh()

// Using Math.asinh()

var num = Math.asinh(0);
console.log(num); // 0

var num = Math.asinh(1);
console.log(num); // 0.881373587019543

var num = Math.asinh(-1);
console.log(num); // -0.881373587019543

var num = Math.asinh(2);
console.log(num); // 1.4436354751788103

Output

0
0.881373587019543
-0.881373587019543
1.4436354751788103

Recommended readings: