Precision problem Mac OS X (PPC)
Iain Day
iain at day-online.org.uk.invalid
Thu Nov 16 14:34:51 CST 2006
Hi,
I posted this query to the scipy list (which you may have seen). I have
been having some precision issues with some code I've got. I've searched
the list archives and came across these tests. SciPy and numpy are
installed from Fink, and running on a 1.5GHz G4 with Mac os x 10.4.8.
>>> import numpy
>>> import scipy
>>> numpy.__version__
'1.0'
>>> scipy.__version__
'0.5.1'
>>> print numpy.finfo(numpy.float32).min
-3.40282346639e+38
>>> print numpy.finfo(numpy.float32).min,
numpy.finfo(numpy.float32).max, numpy.finfo(numpy.float32).eps
-3.40282346639e+38 3.40282346639e+38 1.19209289551e-07
>>> print numpy.finfo(numpy.float64).min,
numpy.finfo(numpy.float64).max, numpy.finfo(numpy.float64).eps
-1.79769313486e+308 1.79769313486e+308 2.22044604925e-16
>>> print numpy.finfo(numpy.float128).min,
numpy.finfo(numpy.float128).max, numpy.finfo(numpy.float128).eps
Warning: overflow encountered in add
Warning: invalid value encountered in subtract
Warning: invalid value encountered in subtract
Warning: overflow encountered in add
Warning: invalid value encountered in subtract
Warning: invalid value encountered in subtract
9223372034707292160.0 -9223372034707292160.0 1.38178697010200053818e-76
Any thoughts? I think this is a bug? If so, where do I report it?
Iain
More information about the Numpy-discussion
mailing list