fn
arctanh
→Tensorarctanh(x: Tensor)Inverse hyperbolic tangent.
Verbose alias of atanh. Computes
, defined for
.
Parameters
xTensorInput tensor; element-wise values must satisfy
for a finite real result.
Returns
TensorElement-wise inverse hyperbolic tangent, same shape as x.
Notes
Mathematical definition:
Boundary values produce ;
produces NaN. Derivative is .
Both arctanh and atanh refer to the same composite.
Examples
>>> import lucid
>>> x = lucid.tensor([-0.5, 0.0, 0.5])
>>> lucid.arctanh(x)
Tensor([-0.5493, 0. , 0.5493])