javascript static method
Math.asinh()
The Math.asinh() static method returns the inverse hyperbolic sine of a number. That is,
Interactive exampleOpen the canonical MDN source to run this embedded demo.
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
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
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.