Compute element-wise inverse of trigonometric sine of input.
JAX implementation of numpy.arcsin
.
x (ArrayLike) – input array or scalar.
An array containing the inverse trigonometric sine of each element of x
in radians in the range [-pi/2, pi/2]
, promoting to inexact dtype.
Note
jnp.arcsin
returns nan
when x
is real-valued and not in the closed interval [-1, 1]
.
jnp.arcsin
follows the branch cut convention of numpy.arcsin
for complex inputs.
Examples
>>> x = jnp.array([-2, -1, -0.5, 0, 0.5, 1, 2]) >>> with jnp.printoptions(precision=3, suppress=True): ... jnp.arcsin(x) Array([ nan, -1.571, -0.524, 0. , 0.524, 1.571, nan], dtype=float32)
For complex-valued inputs:
>>> with jnp.printoptions(precision=3, suppress=True): ... jnp.arcsin(3+4j) Array(0.634+2.306j, dtype=complex64, weak_type=True)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4