X root Operator help

Michael Hoffman cam.ac.uk at mh391.invalid
Wed Apr 18 13:29:24 EDT 2007


[Michael Hoffman]
>> For x root use y**(1/x)

[Steve Holden]
>  >>> 3.14159 ** (1/3)
> 1.0
>  >>>
> 
> So the cube root of pi is 1? I don't think so.
> 
> For generic roots use y ** (1.0 / x)

Yes, good point. :)
-- 
Michael Hoffman



More information about the Python-list mailing list