Computes \(\mathrm{erfc}(x) = 1 - \mathrm{erf}(x)\).

erfc(x)

# S4 method for class 'numeric'
erfc(x)

# S4 method for class 'dualr'
erfc(x)

Arguments

x

A numeric or dual value.

Value

The complementary error function value.

Examples

erfc(1)  # 1 - erf(1)
#> [1] 0.1572992
x <- dual_variable(0)
value(erfc(x))  # 1
#> [1] 1