Scaled complementary error function
erfcx(
returns the
value of the Scaled Complementary Error Function for each element of x
)x
.
Use the erfcx
function to replace expressions
containing exp(x^2)*erfc(x)
to avoid underflow
or overflow errors.
For expressions of the form exp(-x^2)*erfcx(x)
,
use the complementary error function erfc
instead.
This substitution maintains accuracy by avoiding roundoff errors for
large values of x
.