FUNCTION REFERENCE

sech

Hyperbolic secant.

Hyperbolic secant.

Syntax

y = sech(X)

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

Example

sech(1)   % 0.6481

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.