+ 2

print (9**(1/2)), OUTPUT= 3, how?

explain how output is 3 !

16th Dec 2020, 10:43 AM
Vashi Khan
Vashi Khan - avatar
6 Antworten
+ 4
9**(1/2) means that, 9 to the power 1/2 , which is also the square root of 9 which is 3.0
16th Dec 2020, 11:42 AM
R_A
+ 2
9**0.5 == 9/2
16th Dec 2020, 10:52 AM
❛❟❛ Itachi Uchiha ❛❟❛
❛❟❛ Itachi Uchiha ❛❟❛ - avatar
+ 2
0.5==1/2 2==4/2 9**2==(9*4)/2==18 9**0.5==(9*1)/2==3
16th Dec 2020, 11:18 AM
❛❟❛ Itachi Uchiha ❛❟❛
❛❟❛ Itachi Uchiha ❛❟❛ - avatar
+ 1
your third line didn't understand !
16th Dec 2020, 10:50 AM
Vashi Khan
Vashi Khan - avatar
+ 1
Thanks,but not satisfied !
16th Dec 2020, 11:09 AM
Vashi Khan
Vashi Khan - avatar
+ 1
9**(1/2) it means 9 to the power 1/2 9 can be written as 3**2 . 9**(1/2) = 3**(2*1/2 ) so 2 gets cancelled .so ans is 3
18th Dec 2020, 10:48 AM
Sowmya Thoutu
Sowmya Thoutu - avatar