函数 asec #

计算值的反 secant。定义为 asec(x) = acos(1/x)

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

Syntax #

math.asec(x)

Parameters #

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

Returns #

Type Description
number | BigNumber | Complex x 的 arc secant

Throws #

Type | Description —- | ———–

Examples #

math.asec(2)             // returns 1.0471975511965979
math.asec(math.sec(1.5)) // returns 1.5

math.asec(0.5)           // returns Complex 0 + 1.3169578969248166i

另请参阅 #

acos, acot, acsc

Fork me on GitHub