Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K
JAX  documentation - Home

jax.numpy.arcsinh

Contents

jax.numpy.arcsinh#

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

Calculate element-wise inverse of hyperbolic sine of input.

JAX implementation ofnumpy.arcsinh.

The inverse of hyperbolic sine is defined by:

\[arcsinh(x) = \ln(x + \sqrt{1 + x^2})\]
Parameters:

x (ArrayLike) – input array or scalar.

Returns:

An array of same shape asx containing the inverse of hyperbolic sine ofeach element ofx, promoting to inexact dtype.

Return type:

Array

Note

  • jnp.arcsinh returnsnan for values outside the range(-inf,inf).

  • jnp.arcsinh follows the branch cut convention ofnumpy.arcsinhfor complex inputs.

See also

Examples

>>>x=jnp.array([[-2,3,1],...[4,9,-5]])>>>withjnp.printoptions(precision=3,suppress=True):...jnp.arcsinh(x)Array([[-1.444,  1.818,  0.881],       [ 2.095,  2.893, -2.312]], dtype=float32)

For complex-valued inputs:

>>>x1=jnp.array([4-3j,2j])>>>withjnp.printoptions(precision=3,suppress=True):...jnp.arcsinh(x1)Array([2.306-0.634j, 1.317+1.571j], dtype=complex64)
Contents

[8]ページ先頭

©2009-2025 Movatter.jp