scipp.erfc#

scipp.erfc(x)#

Computes the complementary error function.

Parameters:

x (TypeVar(VariableLikeType, Variable, DataArray, Dataset, DataGroup[Any])) – Input data.

Returns:

TypeVar(VariableLikeType, Variable, DataArray, Dataset, DataGroup[Any]) – Complementary error function values of the input.

Examples

Compute complementary error function:

>>> import scipp as sc
>>> x = sc.array(dims=['x'], values=[-2.0, -1.0, 0.0, 1.0, 2.0])
>>> sc.erfc(x)
<scipp.Variable> (x: 5)    float64  [dimensionless]  [1.99532, 1.8427, ..., 0.157299, 0.00467773]

The complementary error function is defined as erfc(x) = 1 - erf(x).