computes the element-wise secant of the argument
y = sec(x)
a real or complex array.
a real or complex array.
The sec
function computes the element-wise secant of the argument. The secant is a
periodic function defined as 1/cos(x)
. For real data the results are real and
in ]-∞,-1] ∪ [1,∞[
.
This function uses the cos()
function.