python math.sinh,sinh_JavaScript中带有示例的Math.sinh()方法

sinh

JavaScript | Math.sinh()方法 (JavaScript | Math.sinh() Method)

Math.sinh() is a function in math library of JavaScript that is used to find the value of hyperbolic sine of a number.

Math.sinh()是JavaScript数学库中的函数,用于查找数字的双曲正弦值。

Syntax:

句法:

Math.sinh(p);

Parameter(s):

参数:

p – It represents the value whose hyperbolic sine value to be found. p –表示要找到其双曲正弦值的值。

Return value:

返回值:

The return type of this method is number, it returns the hyperbolic sine value of the given p.

此方法的返回类型为number ,它返回给定p的双曲正弦值。

Example 1: Find the sinh of numeric values

示例1:找到数值的正弦

console.log(Math.sinh(0));

console.log(Math.sinh(7));

console.log(Math.sinh(-5));

console.log(Math.sinh(4.52));

Output

输出量

0

548.3161232732465

-74.20321057778875

45.912354477244094

Example 2: Find the sinh of non-numeric values

示例2:查找非数值的正弦

console.log(Math.sinh("IncludeHelp"));

// Output: NaN

console.log(Math.sinh(3 + 5i));

// Output: Uncaught SyntaxError: Invalid or unexpected token

翻译自: https://www.includehelp.com/code-snippets/math-sinh-method-with-example-in-javascript.aspx

sinh

你可能感兴趣的:(python,math.sinh)