pymc.math.sinh#

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

hyperbolic sine of a

Computes element-wise hyperbolic sine of a tensor.

Parameters:
aTensorLike

Input tensor

Returns:
TensorVariable

Output tensor with the hyperbolic sine of each element

Notes

This function corresponds to NumPy’s np.sinh function. The hyperbolic sine is defined as: sinh(x) = (exp(x) - exp(-x))/2

Examples

>>> import pytensor
>>> import pytensor.tensor as pt
>>> x = pt.vector("x")
>>> f = pytensor.function([x], pt.sinh(x))
>>> f([0, 1, 2])
array([0.        , 1.17520119, 3.62686041])