@scipy.org
Subject: Re: [Numpy-discussion] Strange error raised by scipy.special.erf
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 "", line 1, in
> spe
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 "", line 1, in
> special.erf(26.6)
> FloatingPointError: underflow encountered in erf
> >>> special.erf(26.7)
> 1.0
>
I can confirm this same behavi
With N.seterr(all='raise'):
>>> from scipy import special
>>> import scipy
>>> special.erf(26.6)
1.0
>>> scipy.__version__
'0.11.0.dev-81dc505'
>>> import numpy as N
>>> N.seterr(all='raise')
{'over': 'warn', 'divide': 'warn', 'invalid': 'warn', 'under': 'ignore'}
>>> special.erf(26.5)
1.0
>>> spe