Main Content

asind

Inverse sine in degrees

Description

Y = asind(X) returns the inverse sine (sin-1) of the elements of X in degrees. The function accepts both real and complex inputs.

  • For real values of X in the interval [-1, 1], asind(X) returns values in the interval [-90, 90].

  • For real values of X outside the interval [-1, 1] and for complex values of X, asind(X) returns complex values.

example

Examples

collapse all

Show that the inverse sine of 1 is exactly 90°.

asind(1)
ans = 
90

Show that the inverse sine, followed by sine, returns the original values of X.

sind(asind([2 3]))
ans = 1×2

     2     3

Plot the inverse sine function over the domain -1x1.

x = -1:.01:1; 
plot(x,asind(x))
grid on

Figure contains an axes object. The axes object contains an object of type line.

Input Arguments

collapse all

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

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™.

GPU Code Generation
Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.

Version History

Introduced before R2006a

expand all

See Also

| |