Main Content

secd

Secant of argument in degrees

Description

example

Y = secd(X) returns the secant of the elements of X, which are expressed in degrees.

Examples

collapse all

secd(90)
ans = Inf
sec(pi/2)
ans = 1.6331e+16

secd(90) is infinite, whereas sec(pi/2) is large but finite.

z = [35+i 15+2i 10+3i];
y = secd(z)
y = 1×3 complex

   1.2204 + 0.0149i   1.0346 + 0.0097i   1.0140 + 0.0094i

Input Arguments

collapse all

Angle in degrees, specified as a real-valued or complex-valued scalar, vector, matrix, or N-D array. The secd operation is element-wise when X is nonscalar.

Data Types: single | double
Complex Number Support: Yes

Output Arguments

collapse all

Secant of angle, returned as a real-valued or complex-valued scalar, vector, matrix, or N-D array of the same size as X.

Extended Capabilities

See Also

| |

Introduced before R2006a