[Numpy-discussion] Strange error raised by scipy.special.erf
Pierre Haessig
pierre.haessig at crans.org
Tue Jan 24 09:01:44 EST 2012
Le 22/01/2012 11:28, Nadav Horesh a écrit :
> >>> special.erf(26.5)
> 1.0
> >>> special.erf(26.6)
> Traceback (most recent call last):
> File "<pyshell#7>", line 1, in <module>
> special.erf(26.6)
> FloatingPointError: underflow encountered in erf
> >>> special.erf(26.7)
> 1.0
>
I can confirm this same behaviour with numpy 1.5.1/scipy 0.9.0
Indeed 26.5 and 26.7 works, while 26.6 raises the underflow... weird
enough !
--
Pierre
More information about the NumPy-Discussion
mailing list