FUNCTION REFERENCE

asec

Inverse secant in radians.

Inverse secant in radians.

Syntax

y = asec(X)

Computed as acos(1./X), as in MATLAB, elementwise on a real or complex double array. Out-of-domain real input gives a complex result.

Example

asec(2)   % 1.0472

Differences from MATLAB: Character, logical and cell input stop with an error, as MATLAB's sinh does; single input is not supported yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.