Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K
JAX  documentation - Home

jax.numpy.arcsin

Contents

jax.numpy.arcsin#

jax.numpy.arcsin(x,/)[source]#

Compute element-wise inverse of trigonometric sine of input.

JAX implementation ofnumpy.arcsin.

Parameters:

x (ArrayLike) – input array or scalar.

Returns:

An array containing the inverse trigonometric sine of each element ofxin radians in the range[-pi/2,pi/2], promoting to inexact dtype.

Return type:

Array

Note

  • jnp.arcsin returnsnan whenx is real-valued and not in the closedinterval[-1,1].

  • jnp.arcsin follows the branch cut convention ofnumpy.arcsin forcomplex inputs.

See also

Examples

>>>x=jnp.array([-2,-1,-0.5,0,0.5,1,2])>>>withjnp.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:

>>>withjnp.printoptions(precision=3,suppress=True):...jnp.arcsin(3+4j)Array(0.634+2.306j, dtype=complex64, weak_type=True)
Contents

[8]ページ先頭

©2009-2025 Movatter.jp