Home »
JavaScript
Math.asinh() Method with Example in JavaScript
JavaScript | Math.asinh() Method: Here, we are going to learn about the asinh() method of Math class in JavaScript with Examples.
Submitted by Shivang Yadav, on December 21, 2019
JavaScript | Math.asinh() Method
Math.asinh() is a function in math library of JavaScript that is used to find the value of hyperbolic arc-sine of a number.
Syntax
Math.asinh(p);
Parameters
- p – It represents the value whose hyperbolic arc-sine value to be found.
Return Value
The return type of this method is number, it returns the hyperbolic arc-sine value of the given p.
Example 1: Find the asinh of numeric values
console.log(Math.asinh(0));
console.log(Math.asinh(7));
console.log(Math.asinh(-5));
console.log(Math.asinh(4.52));
Output
0
2.644120761058629
-2.3124383412727525
2.213677155353774
Example 2: Find the asinh of non-numeric values
console.log(Math.asinh("IncludeHelp"));
// Output: NaN
console.log(Math.asinh(3 + 5i));
// Output: Uncaught SyntaxError: Invalid or unexpected token
JavaScript Math Object Methods »