Y = sec(X)Y = sech(X)
sechoperate element-wise on matrices. Their domains and ranges include complex values. All angles are in radians.
sec(X) is a matrix the same size as
X containing the secant of the elements of
sech(X) is a matrix the same size as
X containing the hyperbolic secant of the elements of
sec(pi/2) = 1.6332e+16is not infinite, but rather a value the size of the reciprocal of the floating point accuracy
piis only a floating-point approximation to the exact value.
(c) Copyright 1994 by The MathWorks, Inc.