Back to Symbolic Math (SymEngine)
sym.sec
Computes the secant of a symbolic expression.
Syntax
sym.sec(x)
Description
Computes the secant of a symbolic expression. The secant function is defined as sec(x) = 1/cos(x), representing the ratio of the hypotenuse to the adjacent side.
Parameters
| Name | Description |
|---|---|
| x | - The angle in radians (as a symbolic expression). |
Returns
Expr