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