numpy.emath.arcsin#
- emath.arcsin(x)[source]#
Compute the inverse sine of x.
Return the “principal value” (for a description of this, see
numpy.arcsin) of the inverse sine ofx. For realx such thatabs(x) <= 1, this is a real number in the closed interval\([-\pi/2, \pi/2]\). Otherwise, the complex principle value isreturned.- Parameters:
- xarray_like or scalar
The value(s) whose arcsin is (are) required.
- Returns:
- outndarray or scalar
The inverse sine(s) of thex value(s). Ifx was a scalar, soisout, otherwise an array object is returned.
See also
Notes
For an arcsin() that returns
NANwhen realx is not in theinterval[-1,1], usenumpy.arcsin.Examples
>>>importnumpyasnp>>>np.set_printoptions(precision=4)
>>>np.emath.arcsin(0)0.0
>>>np.emath.arcsin([0,1])array([0. , 1.5708])
On this page