Secant

Base.Math.secFunction
sec(x)

Compute the secant of x, where x is in radians.

source
sec(A::AbstractMatrix)

Compute the matrix secant of a square matrix A.

Base.Math.sechFunction
sech(x)

Compute the hyperbolic secant of x.

source
sech(A::AbstractMatrix)

Compute the matrix hyperbolic secant of square matrix A.

Base.Math.asecFunction
asec(x)

Compute the inverse secant of x, where the output is in radians.

source
asec(A::AbstractMatrix)

Compute the inverse matrix secant of A.

Base.Math.asecdFunction
asecd(x)

Compute the inverse secant of x, where the output is in degrees. If x is a matrix, x needs to be a square matrix.

Julia 1.7

Matrix arguments require Julia 1.7 or later.

source
Base.Math.asechFunction
asech(x)

Compute the inverse hyperbolic secant of x.

source
asech(A::AbstractMatrix)

Compute the inverse matrix hyperbolic secant of A.