asinh函数
JavaScript | Math.asinh()方法 (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.
Math.asinh()是JavaScript数学库中的函数,用于查找数字的双曲反正弦值。
Syntax:
句法:
Math.asinh(p);
Parameter(s):
参数:
p – It represents the value whose hyperbolic arc-sine value to be found.
p –表示要找到其双曲反正弦值的值。
Return value:
返回值:
The return type of this method is number, it returns the hyperbolic arc-sine value of the given p.
此方法的返回类型为number ,它返回给定p的双曲反正弦值。
Example 1: Find the asinh of numeric values
示例1:查找数字的asinh
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
示例2:查找非数值的asinh
console.log(Math.asinh("IncludeHelp"));
// Output: NaN
console.log(Math.asinh(3 + 5i));
// Output: Uncaught SyntaxError: Invalid or unexpected token
翻译自: https://www.includehelp.com/code-snippets/math-asinh-method-with-example-in-javascript.aspx
asinh函数