+ 1

9**(1/2)

it shows answer as 1

1st Mar 2017, 5:40 PM
Dhayaleswaran.C
Dhayaleswaran.C - avatar
3 Answers
+ 14
In this question answer is 1 everywhere. (Math, programming) 1^0=2^0=3^0=...=1
2nd Mar 2017, 6:00 PM
Giorgi R.
Giorgi R. - avatar
+ 7
In Python v2, 1/2 evaluates to 0, because it's meant to be the integer division. Thus, 9**(1/2) = 9**0 = 1 In Python v3, 1/2 evaluates to 0.5, and 9**0.5=3.0
1st Mar 2017, 5:44 PM
Álvaro
+ 2
In python ( and in some other languages) 1/2 equals 0 . This is beacuse it truncates the true result 1/2 = 0.5 , but in python (truncate) 1/2=0 similarly ,in python , 5/2 = 2
1st Mar 2017, 5:44 PM
Meharban Singh
Meharban Singh - avatar