[Numpy-discussion] underflow array([2.9e-131])**3

Jean-Bernard Addor jbaddor at physics.mcgill.ca
Thu May 31 18:59:54 EDT 2001

Hey Numpy people!

Do anyone know how to disable underflow exception errors in Numeric?

I have a lot of these in my code. It is now a very important problem in my
calculations. The only solution I see is to make a for loop and make the
arithmetic in python instead of Numeric.

Thanks for your help,


Python 2.0 (#9, Feb  2 2001, 12:17:02) 
[GCC 2.95.2 19991024 (release)] on linux2
Type "copyright", "credits" or "license" for more information.
Hello from .pythonrc.py
>>> import Numeric
>>> Numeric.__version__
>>> Numeric.array([2.9e-131])**3
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OverflowError: math range error
>>> 2.9e-131**3

More information about the NumPy-Discussion mailing list