pymc.math.erfc#
- pymc.math.erfc = Elemwise(scalar_op=erfc,inplace_pattern=<frozendict {}>)[source]#
complementary error function
Computes the element-wise complementary error function of a tensor.
- Parameters:
- a
TensorLike
Input tensor
- a
- Returns:
TensorVariable
Output tensor with the complementary error function evaluated at each element
Notes
This function corresponds to SciPy’s scipy.special.erfc function. The complementary error function is defined as: erfc(x) = 1 - erf(x) = (2/√π) * ∫(x to ∞) exp(-t²) dt
Examples
>>> import pytensor >>> import pytensor.tensor as pt >>> x = pt.vector("x") >>> f = pytensor.function([x], pt.erfc(x)) >>> f([-1, 0, 1]) array([1.84270079, 1. , 0.15729921])