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

Nils Wagner nwagner@iam.uni-stuttgart...
Fri Apr 20 15:10:29 CDT 2007


On Fri, 20 Apr 2007 22:02:18 +0200
  Stef Mientki <s.mientki@ru.nl> wrote:
> Is this good behavior ?
> 
> >>> power(10,2)
> 99
> >>> power(10,3)
> 1000
> >>> power(10.0,2.0)
> 100.0
> 
> thanks,
> Stef Mientki
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user

  
>>> from scipy import *
>>> power(10,2)
100
>>> power(10,3)
1000
>>> power(10,2.)
100.0
>>> import scipy
>>> scipy.__version__
'0.5.3.dev2931'


More information about the SciPy-user mailing list