Main Content

secd

Secant of argument in degrees

Description

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

example

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, multidimensional array, table, or timetable. The secd operation is element-wise when X is nonscalar.

Data Types: single | double | table | timetable
Complex Number Support: Yes

Output Arguments

collapse all

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

Extended Capabilities

Version History

Introduced before R2006a

expand all

See Also

| |