acscd

Inverse cosecant in degrees

Syntax

Y = acscd(X)

Description

example

Y = acscd(X) returns the inverse cosecant (cosec-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, ∞], acscd(X) returns values in the range [-90, 90].

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

Examples

collapse all

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

    2.8660    5.7392         0

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

acscd(1+i)
ans = 25.9136 - 30.4033i

Input Arguments

collapse all

Cosecant of angle, specified as a real-valued or complex-valued scalar, vector, matrix, or N-D array. The acscd operation is element-wise when X is non-scalar.

Data Types: single | double
Complex Number Support: Yes

Output Arguments

collapse all

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

Extended Capabilities

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

See Also

| |

Introduced before R2006a