nerdamer.asec(x: ExpressionInput): Expression
Computes the arcsecant (inverse secant) of an expression: asec(x) = acos(1/x).
At infinity: asec(±∞) = π/2.
Parameters
| Name | Type | Description |
|---|
x | ExpressionInput | The input expression (domain |x| ≥ 1 for real results). |
Returns
Expression — The arcsecant of x in radians.
Examples
asec(1).text() // "0"
asec(2).text() // "1/3*pi"
// Symbolic
asec('x').text() // "asec(x)"