[SciPy-user] scipy.special.erf randomly returns NANs on OSX

Robert Kern robert.kern at gmail.com
Sun Jan 22 20:18:45 CST 2006

Evan Monroig wrote:
> Hi,
> I have this strange problem that the special erf function returns NANs
> when the input is an array:

> scipy is, numpy is, I am running on Mac OS X
> with MacPython 2.4.1
> Can anyone reproduce the problem?

Actually, on OS X, /usr/include/math.h defines an erf() function that is
probably getting picked up instead of Cephes's version. Bad Apple!

Robert Kern
robert.kern at gmail.com

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter

More information about the SciPy-user mailing list