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. – JimB Jul 18 '19 at 18:012 HermiteH[-1, x]/Sqrt[Pi]. – AccidentalFourierTransform Jul 18 '19 at 18:07N[Exp[x^2] Erfc[x] /. x -> 1000000, 15]– Bob Hanlon Jul 18 '19 at 18:18x = 50.0; Exp[x^2] Erfc[x]underflows. @BobHanlon. This shows up (for example) if you try to plot the function. – a06e Jul 18 '19 at 19:01x = 50.0\20; Exp[x^2] Erfc[x] // AbsoluteTimingevaluates to{0.00035, 0.011281536265323773}`. Doesn't seem very slow. – Bob Hanlon Jul 18 '19 at 19:18LogLinearPlot[Exp[x^2] Erfc[x], {x, 1, 1000}, WorkingPrecision -> 20]plots fine. – Bob Hanlon Jul 18 '19 at 19:21