Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K
JAX  documentation - Home

jax.numpy.sin

Contents

jax.numpy.sin#

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

Compute a trigonometric sine of each element of input.

JAX implementation ofnumpy.sin.

Parameters:

x (ArrayLike) – array or scalar. Angle in radians.

Returns:

An array containing the sine of each element inx, promotes to inexactdtype.

Return type:

Array

See also

Examples

>>>pi=jnp.pi>>>x=jnp.array([pi/4,pi/2,3*pi/4,pi])>>>withjnp.printoptions(precision=3,suppress=True):...print(jnp.sin(x))[ 0.707  1.     0.707 -0.   ]
Contents

[8]ページ先頭

©2009-2025 Movatter.jp