函数 cosh #
计算双曲余弦值,定义为 cosh(x) = 1/2 * (exp(x) + exp(-x))。
为避免与矩阵双曲余弦混淆,此函数不适用于矩阵。
Syntax #
math.cosh(x)
Parameters #
| Parameter | Type | Description |
|---|---|---|
x |
number | BigNumber | Complex | 函数输入 |
Returns #
| Type | Description |
|---|---|
| number | BigNumber | Complex | x 的双曲余弦 |
Throws #
Type | Description —- | ———–
Examples #
math.cosh(0.5) // returns number 1.1276259652063807