Function reference · Trigonometry
sec
Computes the secant 1/cos(x).
Exact cosine values are inverted where possible. Inputs at which cosine is zero are undefined.
Examples
These examples use Nerdamer Notation.
Invert an exact cosine value.
sec(pi/3) // → 2
Keep a symbolic secant.
sec(x)Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
sec(arg1)
nerdamer.sec
Call the operation through the default nerdamer import.
nerdamer.sec(x: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | The angle in radians. |
Returns
Expression — The secant of `x`.
