You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculates an implementation-dependent approximation of the principal value of the inverse sine, having domain ``[-1, +1]`` and codomain ``[-π/2, +π/2]`` for each element ``x_i`` of the input array ``x``. Each element-wise result is expressed in radians.
120
+
r"""
121
+
Calculates an implementation-dependent approximation of the principal value of the inverse sine for each element ``x_i`` of the input array ``x``.
122
+
123
+
Each element-wise result is expressed in radians.
122
124
123
125
**Special cases**
124
126
125
-
For floating-point operands,
127
+
For real-valued floating-point operands,
126
128
127
129
- If ``x_i`` is ``NaN``, the result is ``NaN``.
128
130
- If ``x_i`` is greater than ``1``, the result is ``NaN``.
129
131
- If ``x_i`` is less than ``-1``, the result is ``NaN``.
130
132
- If ``x_i`` is ``+0``, the result is ``+0``.
131
133
- If ``x_i`` is ``-0``, the result is ``-0``.
132
134
135
+
For complex floating-point operands, special cases must be handled as if the operation is implemented as ``-1j * asinh(x*1j)``.
136
+
137
+
.. note::
138
+
The principal value of the arc sine of a complex number :math:`z` is
For complex floating-point operands, ``asin(conj(x))`` must equal ``conj(asin(x))``.
150
+
151
+
.. note::
152
+
The inverse sine (or arc sine) is a multi-valued function and requires a branch cut on the complex plane. By convention, a branch cut is placed at the line segments :math:`(-\infty, -1)` and :math:`(1, \infty)` of the real axis.
153
+
154
+
Accordingly, for complex arguments, the function returns the inverse sine in the range of a strip unbounded along the imaginary axis and in the interval :math:`[-\pi/2, +\pi/2]` along the real axis.
155
+
156
+
*Note: branch cuts have provisional status* (see :ref:`branch-cuts`).
157
+
133
158
Parameters
134
159
----------
135
160
x: array
136
-
input array. Should have a real-valued floating-point data type.
161
+
input array. Should have a floating-point data type.
137
162
138
163
Returns
139
164
-------
140
165
out: array
141
-
an array containing the inverse sine of each element in ``x``. The returned array must have a real-valued floating-point data type determined by :ref:`type-promotion`.
166
+
an array containing the inverse sine of each element in ``x``. The returned array must have a floating-point data type determined by :ref:`type-promotion`.
0 commit comments