Math.asinh()
The Math.asinh() static method returns the inverse hyperbolic sine of a number. That is,
The Math.asinh() static method returns the inverse hyperbolic sine of a number. That is,
JavaScript Demo: Math.asinh()
```js interactive-example console.log(Math.asinh(1)); // Expected output: 0.881373587019543
console.log(Math.asinh(0)); // Expected output: 0
console.log(Math.asinh(-1)); // Expected output: -0.881373587019543
console.log(Math.asinh(2)); // Expected output: 1.4436354751788103
## Syntax
```js-nolint
Math.asinh(x)
Parameters
x- : A number.
Return value
The inverse hyperbolic sine of x.
Description
Because asinh() is a static method of Math, you always use it as Math.asinh(), rather than as a method of a Math object you created (Math is not a constructor).
Examples
Using Math.asinh()
Math.asinh(-Infinity); // -Infinity
Math.asinh(-1); // -0.881373587019543
Math.asinh(-0); // -0
Math.asinh(0); // 0
Math.asinh(1); // 0.881373587019543
Math.asinh(Infinity); // Infinity
Specifications
Browser compatibility
See also
- Polyfill of
Math.asinhincore-js - es-shims polyfill of
Math.asinh - Math.acosh()
- Math.atanh()
- Math.cosh()
- Math.sinh()
- Math.tanh()