+ 2

print( 9 ** (1/2) )

Need explanation

6th Feb 2021, 4:27 PM
B.Swetha
B.Swetha - avatar
4 Respuestas
+ 4
This can be understood as the square root of 9. [The next part is just a big i.e.] If it was (1/3) it would be the cube root of 9. If it was (2/3), it would be the cube root of 9 raised to the power of 2. For a deeper understanding of this concept, search up laws of exponents (yeah. It's a math thing xD)
6th Feb 2021, 4:32 PM
Skyvn Padayhag
Skyvn Padayhag - avatar
+ 3
Firstable the code will resolve the division 1/2 (bcs its in the Parentheses) then the result (=0.5)will be exponent of 9. (=9^0.5 = 9**0.5) Hope I helped you :)
6th Feb 2021, 4:34 PM
Matthew
Matthew - avatar
+ 3
B.Swetha It's math as Skyvn Padayhag said. See, (9**(1/2)) can be written as ((3**2)**1/2) as we know that 3**2 is 9. 3 raised to 2 times and then 3 raised to 1/2 times. Now, it becomes (3**(2 multiplied by 1/2)). 2*1/2 is 1. So, it ultimately becomes 3**1 which results to 3.
6th Feb 2021, 4:45 PM
CHANDAN ROY
CHANDAN ROY - avatar
+ 1
Thank you guys i got the answer
6th Feb 2021, 4:46 PM
B.Swetha
B.Swetha - avatar