FUNCTION REFERENCE

secd

Secant of argument in degrees.

Secant of argument in degrees.

Syntax

y = secd(X)

The angle is first reduced in degrees (rem(X,360) is exact), so multiples of 90 give exact 0, 1, -1 or Inf: sind(180) is exactly 0 and tand(90) is Inf. Inf and NaN give NaN.

Example

secd(60)   % 2.0000

Differences from MATLAB: Real double arrays only; complex, character, logical and cell input stop with an error. 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.