Function asec #

Calculate the inverse secant of a value. Defined as asec(x) = acos(1/x).

To avoid confusion with the matrix arcsecant, this function does not apply to matrices.

Syntax #

math.asec(x)

Parameters #

Parameter Type Description
x number | BigNumber | Complex Function input

Returns #

Type Description
number | BigNumber | Complex The arc secant of x

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

See also #

acos, acot, acsc

Fork me on GitHub