You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / lib / scimath / arcsin

_ArrayFunctionDispatcher

numpy.lib.scimath:arcsin

source: /numpy/lib/_scimath_impl.py :541

Signature

def   arcsin ( x )

Summary

Compute the inverse sine of x.

Extended Summary

Return the "principal value" (for a description of this, see numpy.arcsin) of the inverse sine of x. For real x such that abs(x) <= 1, this is a real number in the closed interval . Otherwise, the complex principle value is returned.

Parameters

x : array_like or scalar

The value(s) whose arcsin is (are) required.

Returns

out : ndarray or scalar

The inverse sine(s) of the x value(s). If x was a scalar, so is out, otherwise an array object is returned.

Notes

For an arcsin() that returns NAN when real x is not in the interval [-1,1], use numpy.arcsin.

Examples

import numpy as np
np.set_printoptions(precision=4)
np.emath.arcsin(0)
np.emath.arcsin([0,1])

See also

numpy.arcsin

Aliases

  • numpy.emath.arcsin