函数 acot #
计算值的反正切,定义为 acot(x) = atan(1/x)。
为避免与矩阵的余切混淆,此函数不适用于矩阵。
Syntax #
math.acot(x)
Parameters #
| Parameter | Type | Description |
|---|---|---|
x |
number | BigNumber | Complex | 函数输入 |
Returns #
| Type | Description |
|---|---|
| number | BigNumber | Complex | x 的反正切 |
Throws #
Type | Description —- | ———–
Examples #
math.acot(0.5) // returns number 1.1071487177940904
math.acot(2) // returns number 0.4636476090008061
math.acot(math.cot(1.5)) // returns number 1.5