Cube Roots

William Park opengeometry at yahoo.ca
Thu Jan 2 15:40:00 EST 2003


John Smith <someone at microsoft.com> wrote:
> How does one take a root higher than square roots in Python?  Can I
> take the cube root of a number?

Pretty much like other languages -- y**(x), math.pow(y, x), ie.
    8**(1/3.0)
    math.pow(8, 1/3.0)

-- 
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
Linux solution for data management and processing. 




More information about the Python-list mailing list