函数 csc #
计算值的余割,定义为 csc(x) = 1/sin(x)。
为避免与矩阵余割混淆,此函数不适用于矩阵。
Syntax #
math.csc(x)
Parameters #
| Parameter | Type | Description |
|---|---|---|
x |
number | BigNumber | Complex | Unit | 函数输入 |
Returns #
| Type | Description |
|---|---|
| number | BigNumber | Complex | x 的余割 |
Throws #
Type | Description —- | ———–
Examples #
math.csc(2) // returns number 1.099750170294617
1 / math.sin(2) // returns number 1.099750170294617