本文共 1130 字,大约阅读时间需要 3 分钟。
python中acosh
Math.acosh() is a function in math library of JavaScript that is used to find the value of hyperbolic arc-cosine of a number.
Math.acosh()是JavaScript数学库中的函数,用于查找数字的双曲反余弦值。
Syntax:
句法:
Math.acosh(p);
Parameter(s):
参数:
p – It represents the value whose hyperbolic arc-cosine value to be found.
p –表示要找到其双曲反余弦值的值。
Return value:
返回值:
The return type of this method is number, it returns the hyperbolic arc-cosine value of the given p.
此方法的返回类型为number ,它返回给定p的双曲反余弦值。
Example 1: Find the acosh of numeric values
示例1:查找数字值
console.log(Math.acosh(1));console.log(Math.acosh(1.454));console.log(Math.acosh(19));
Output
输出量
00.92009027843277553.6368929184641337
Example 2: Passing numeric values that may provide invalid output.
示例2:传递可能提供无效输出的数值。
console.log(Math.acosh(0));console.log(Math.acosh(-1));console.log(Math.acosh(-19));
Output
输出量
NaNNaNNaN
Example 3: Passing non-numeric values.
示例3:传递非数字值。
console.log(Math.acosh("Hello!"));// Output: NaNconsole.log(Math.acosh(1 + 4i));// Outout: Uncaught SyntaxError: Invalid or unexpected token
翻译自:
python中acosh
转载地址:http://pwvzd.baihongyu.com/