erfcx
Scaled complementary error function
Syntax
erfcx(x)
Description
erfcx(
returns the value of theScaled Complementary Error Functionfor each element ofx
)x
. Use theerfcx
function to replace expressions containingexp(x^2)*erfc(x)
to avoid underflow or overflow errors.
Examples
Input Arguments
More About
Tips
For expressions of the form
exp(-x^2)*erfcx(x)
, use the complementary error functionerfc
instead. This substitution maintains accuracy by avoiding roundoff errors for large values ofx
.
Extended Capabilities
Introduced before R2006a
Was this topic helpful?