Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K
JAX  documentation - Home

jax.numpy.tan

Contents

jax.numpy.tan#

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

Compute a trigonometric tangent of each element of input.

JAX implementation ofnumpy.tan.

Parameters:

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

Returns:

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

Return type:

Array

See also

Examples

>>>pi=jnp.pi>>>x=jnp.array([0,pi/6,pi/4,3*pi/4,5*pi/6])>>>withjnp.printoptions(precision=3,suppress=True):...print(jnp.tan(x))[ 0.     0.577  1.    -1.    -0.577]
Contents

[8]ページ先頭

©2009-2025 Movatter.jp