pymc.math.arccosh#

pymc.math.arccosh = Elemwise(scalar_op=arccosh,inplace_pattern=<frozendict {}>)[source]#

hyperbolic arc cosine of a

Computes element-wise inverse hyperbolic cosine of a tensor.

Parameters:
aTensorLike

Input tensor (values should be ≥ 1)

Returns:
TensorVariable

Output tensor with the hyperbolic arc cosine of each element

Notes

This function corresponds to NumPy’s np.arccosh function. The domain is [1, inf]; values outside this range will produce NaN outputs.

Examples

>>> import pytensor
>>> import pytensor.tensor as pt
>>> x = pt.vector("x")
>>> f = pytensor.function([x], pt.arccosh(x))
>>> f([1, 2, 10])
array([0.        , 1.31695789, 2.99322285])