[Numpy-tickets] [NumPy] #507: invalid math result in numpy.sqrt() and numpy.square() when using 2^32 and (2^32)^2

NumPy numpy-tickets@scipy....
Sun Apr 29 08:42:01 CDT 2007


#507: invalid math result in numpy.sqrt() and numpy.square() when using 2^32 and
(2^32)^2
----------------------+-----------------------------------------------------
 Reporter:  Xiph1980  |        Owner:  somebody
     Type:  defect    |       Status:  new     
 Priority:  high      |    Milestone:          
Component:  Other     |      Version:  none    
 Severity:  critical  |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by Xiph1980):

 I've just ran a quick little program:

 {{{
 >>> number = 40000
 >>> while numpy.square(number) == number ** 2:
 ...     print "%s is still working allright" % (number,)
 ...     number += 1
 ...
 }}}

 which makes it seems that up until 46340, everything is still dandy. from
 46341 it starts giving a false result.

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/507#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list