#Square Root in Python

8 messages · Page 1 of 1 (latest)

fiery heron
#

Is there a way to have square roots without the sqrt function? I was thinking of using the ^ I know very simple question apologies but I was just curious. I also googled but they all use the sqrt function unless I wasn't specific enough with google.

bold lakeBOT
signal ivy
#

square root of a number is that number raised to 1/2

fiery heron
#

Ahh gotcha thank you will keep it in mind for the future

#

Wait for example if I would need a square root of 3 then 3 ** 0.5?

signal ivy
#

yes

#

cube root would be 3 ** (1/3)