fn

asinh

Tensor
asinh(x: Tensor)
source

Inverse hyperbolic sine.

Short-name alias of arcsinh. Defined for all real inputs.

Parameters

xTensor
Input tensor. Domain is all of R\mathbb{R}.

Returns

Tensor

Element-wise inverse hyperbolic sine.

Notes

Mathematical definition:

asinh(x)=log ⁣(x+x2+1).\operatorname{asinh}(x) = \log\!\bigl(x + \sqrt{x^{2} + 1}\bigr).

The function is odd: asinh(x)=asinh(x)\operatorname{asinh}(-x) = -\operatorname{asinh}(x). Derivative is 1/x2+11 / \sqrt{x^{2} + 1}.

Examples

>>> import lucid
>>> x = lucid.tensor([-1.0, 0.0, 1.0])
>>> lucid.asinh(x)
Tensor([-0.8814,  0.    ,  0.8814])