函数 cot #

计算值的余切。定义为 cot(x) = 1 / tan(x)

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

Syntax #

math.cot(x)

Parameters #

Parameter Type Description
x 数字 | 复数 | 单位 | 数组 | 矩阵 函数输入

Returns #

Type Description
number | Complex | Array | Matrix x 的余切

Throws #

Type | Description —- | ———–

Examples #

math.cot(2)      // returns number -0.45765755436028577
1 / math.tan(2)  // returns number -0.45765755436028577

另请参阅 #

tan, sec, csc

Fork me on GitHub