[SciPy-user] special.erf underflow

Travis Oliphant oliphant.travis at ieee.org
Mon May 12 21:46:46 EDT 2003


Fernando Perez wrote:
> Travis Oliphant wrote:
> 
>>
>>  >>> info(scipy.special.errprint)
>>
>> errprint({flag}) sets or resets the error printing flag in cephesmodule
>> returning the previous state. If no argument is given the current 
>> state of the flag is returned and no change occurs.
>>
>> so scipy.special.errprint(0)  would turn off printing.
> 
> 
> Mmh, I wonder if this should be a top-level thing.  It isn't really 
> something specific to special functions, as any regular numerical 
> function which can potentially under/overflow could benefit from this 
> control.  Does this make sense? Is it worth the refactoring effort?
> 

Well, it's use would have to be significantly rethought.  I used this as 
a means of handling the error printing of the cephes package --- not 
numeric python as a whole.

It is definitely worth thinking about and I'm very open to suggestions...


-teo




More information about the SciPy-User mailing list