The function erfcx(x) = exp(x^2)erfc(x)
is sometimes provided in numerical packages to avoid numerical underflow for large values of x
. But Mathematica does not provide a native implementation of this function.
Any suggestions as to what can I use to compute $\exp(x^2)\mathrm{erfc}(x)$ accurately for large values of $x$?
Edit: I just realized this is a duplicate of Numerical underflow for a scaled error function, which contains very detailed answers. So I'm closing this one.
N[Exp[x^2] Erfc[x] /. x -> 1000000, 500]
works fine. $\endgroup$2 HermiteH[-1, x]/Sqrt[Pi]
. $\endgroup$N[Exp[x^2] Erfc[x] /. x -> 1000000, 15]
$\endgroup$