[Numpy-discussion] strange underflows

Jean-Bernard Addor jbaddor at physics.mcgill.ca
Tue Jan 16 14:29:01 CST 2001


Hey Numpy people!

I just compiled the last NumPy. Underflows don't give zero but generate
OverflowError: 

Python 2.0 (#2, Dec 15 2000, 15:04:31) 
[GCC 2.95.2 19991024 (release)] on linux2
Type "copyright", "credits" or "license" for more information.
Hello from .pythonrc.py
>>> import Numeric
>>> Numeric.__version__
'17.2.0'
>>> Numeric.exp(-1.42676746e+12)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OverflowError: math range error
>>> 

How to suppress these? Any hint?


Jean-Bernard





More information about the Numpy-discussion mailing list