0
how is 9**(1/2) end up as 3.0
can't figure out
11 Answers
+ 4
When you enter that it is trying to find the square root of 9, since any number to the power of a fraction is the equivalent to a root. The square root of 9 is 3.
+ 2
1/2 is same asâ
hence â9 = 3.0
+ 1
Yes it is, for example if you did 9**(1/3), it would find the cube root.
0
ahh makes sense
0
I didn't understand too!
0
** is a power function in python, so 9 to the power 1/2 will be 3
0
square root of 9 is 3.
0
in python 9**(1/2) will be 1 and not 3 because you're dividing integer/integer so answer Will be an integer. 1/2 is 0 so 9**0 is 1. correct question is why 9**(1/2.0) is 3.0
- 1
9/1 is 9 and then theres /2 and 9 / 2 is 3.0
- 1
â9=3
- 3
thanks. Is that with any fraction?