arctanh

Contents

arctanh#

class saiunit.math.arctanh(x, unit_to_scale=None, **kwargs)#

Inverse hyperbolic tangent, element-wise.

Parameters:
  • x (Array | ndarray | bool | number | bool | int | float | complex | saiunit.Quantity) – Input values in the range (-1, 1).

  • unit_to_scale (saiunit.Unit | None) – Unit used to convert x to a dimensionless number first.

Returns:

out – Element-wise inverse hyperbolic tangent.

Return type:

Array

Examples

>>> import saiunit as u
>>> import jax.numpy as jnp
>>> u.math.arctanh(jnp.array([0.0, 0.5]))
Array([0.       , 0.5493061], dtype=float32)