函数 coth #

计算值的双曲余切,定义为 coth(x) = 1 / tanh(x)

为避免与矩阵双曲余切混淆,此函数不适用于矩阵。

Syntax #

math.coth(x)

Parameters #

Parameter Type Description
x number | BigNumber | Complex 函数输入

Returns #

Type Description
number | BigNumber | Complex x 的双曲余切

Throws #

Type | Description —- | ———–

Examples #

// coth(x) = 1 / tanh(x)
math.coth(2)         // returns 1.0373147207275482
1 / math.tanh(2)     // returns 1.0373147207275482

另请参阅 #

sinh, tanh, cosh

Fork me on GitHub