[SciPy-user] power(10,2) accuracy ?

Robert Kern robert.kern@gmail....
Fri Apr 20 15:11:50 CDT 2007


Stef Mientki wrote:
> Is this good behavior ?
> 
>  >>> power(10,2)
> 99
>  >>> power(10,3)
> 1000
>  >>> power(10.0,2.0)
> 100.0

Please always tell us what version of numpy you are using and on what platform
when reporting possible bugs. power(10, 2) gives me 100 with a recent SVN
checkout on OS X.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


More information about the SciPy-user mailing list