pow() works but sqrt() not!?
Boris Borcic
bborcic at gmail.com
Thu Jan 4 09:06:42 EST 2007
siggi wrote:
> Hi all,
>
> this is a newbie question on :
> Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on
> win32
> PC with WinXP
>
> In
> http://www.python.org/doc/2.3.5/lib/module-math.html
> I read:
>
> "sqrt( x) Return the square root of x."
>
> Now the test for module math with function pow():
> ---------------------------------------------------
>>>> pow(9,9)
> 387420489
>
> Fine, but sqrt() fails:
> -------------------
BTW note that (of course) you can write pow(x,.5) or x**.5 for sqrt(x)
without any preliminary import statement
More information about the Python-list
mailing list