Skip to main content
All hyperbolic functions operate element-wise.

sinh

Compute the hyperbolic sine, element-wise.
Returns: NDArray — Element-wise sinh(x) = (exp(x) - exp(-x)) / 2.

cosh

Compute the hyperbolic cosine, element-wise.
Returns: NDArray — Element-wise cosh(x) = (exp(x) + exp(-x)) / 2.

tanh

Compute the hyperbolic tangent, element-wise.
Returns: NDArray — Element-wise tanh(x) = sinh(x) / cosh(x).

arcsinh

Compute the inverse hyperbolic sine, element-wise. Also available as the alias asinh.
Returns: NDArray — Element-wise arcsinh(x) = ln(x + sqrt(x**2 + 1)).

arccosh

Compute the inverse hyperbolic cosine, element-wise. Also available as the alias acosh.
Returns: NDArray — Element-wise arccosh(x) = ln(x + sqrt(x**2 - 1)).

arctanh

Compute the inverse hyperbolic tangent, element-wise. Also available as the alias atanh.
Returns: NDArray — Element-wise arctanh(x) = 0.5 * ln((1+x) / (1-x)).