np.cosh没有分配
JavaScript | Math.cosh()方法 (JavaScript | Math.cosh() Method)Math operations in JavaScript are handled using functions of math library in JavaScript. In this tutorial on Math.cosh() method, we will learn about the cosh() method and its working with examples.
JavaScript中的数学运算是使用JavaScript中的数学库函数处理的。 在有关Math.cosh()方法的教程中,我们将学习cosh()方法及其示例。
Math.cosh() is a function in math library of JavaScript that is used to find the value of hyperbolic cosine of a number.
Math.cosh()是JavaScript数学库中的函数,用于查找数字的双曲余弦值。
Syntax:
句法:
Math.cosh(p);Parameter(s):
参数:
p – It represents the value whose hyperbolic cosine value to be found.
p –表示要找到其双曲余弦值的值。
Return value:
返回值:
The return type of this method is number, it returns the hyperbolic cosine value of the given p.
此方法的返回类型为number ,它返回给定p的双曲余弦值。
Example 1: Find the cosh of numeric values
示例1:查找数值的
console.log(Math.cosh(1));console.log(Math.cosh(22));console.log(Math.cosh(-2));console.log(Math.cosh(4.23));Output
输出量
1.54308063481524371792456423.0657963.762195691083631434.36589228219746Example 2: Find the cosh of non-numeric values
示例2:查找非数字值的cosh
console.log(Math.cosh(1 + 2i));console.log(Math.cosh("Hello"));console.log(Math.cosh('x'));Output
输出量
Invalid or unexpected tokenNaNNaN翻译自: https://www.includehelp.com/code-snippets/math-cosh-method-with-example-in-javascript.aspx
np.cosh没有分配