scipy/scipy — pull request #340 by pv (2012-10-20 19:12:37+00:00)
Title: BUG: special: fix accuracy issues in complex erf by reimplementing it

The reimplementation is in terms of a (shifted) Faddeeva function, falling back to an asymptotic expansion when the Faddeeva exponential scaling factor overflows.

Fixes Trac #1207, Trac #1699 (probably), and addresses the complaint on the mailing list, http://article.gmane.org/gmane.comp.python.scientific.user/32959

Need to also consider submitting these erf/erfc implementations back to the Faddeeva_w.cc authors (needs some minor rewriting in C).