sec

Secant of angle in radians.

Syntax

  • res = sec(x)

Input argument

  • x - a numeric value

Output argument

  • res - a numeric value

Description

sec computes the secant of argument in radians for each element of x.

Example

x = -pi:0.75:pi;
R = sec(x)

See also

secd.

History

Author

Allan CORNET

Last updated