Main Content

asecd

Inverse secant in degrees

Description

Y = asecd(X) returns the inverse secant (sec-1) of the elements of X in degrees. The function accepts both real and complex inputs.

  • For real values of X in the intervals [-∞, -1] and [1, ∞], asecd(X) returns values in the interval [0, 180].

  • For real values of X in the interval (-1, 1) and for complex values of X, asecd(X) returns complex values.

example

Examples

collapse all

x = [10 1 Inf];
y = asecd(x)
y = 1×3

   84.2608         0   90.0000

The asecd operation is element-wise when you pass a vector, matrix, or N-D array.

asecd(1+i)
ans = 
64.0864 +30.4033i

Input Arguments

collapse all

Secant of angle, specified as a real-valued or complex-valued scalar, vector, matrix, multidimensional array, table, or timetable. The asecd operation is element-wise when X is non-scalar.

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

Output Arguments

collapse all

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

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced before R2006a

expand all

See Also

| |