+ 1

How the output is 3.0

print(9**(1/2))

22nd Dec 2019, 2:25 PM
Sonu
Sonu - avatar
3 Antworten
+ 6
** # for square root (9 ** (1/2)) = 9 in the power of 1/2. Any number in the power of 1/2 is equal with its square root. √9=3 so (9**(1/2))= 3 Hope this helps 🙂 (please write your language also when you make a question to help those who want to help you. I suppose that this code is written in python.)
22nd Dec 2019, 2:42 PM
Elen V
Elen V - avatar
0
** is used for calculate power. Ex: 2 power 3 =2*2*2=8 (1/2) power for Squire root, (1/3) power means cube root.. So 9**(1/2)=3.0 8**(1/3)=2.0
22nd Dec 2019, 3:43 PM
Jayakrishna 🇮🇳
0
In addition to the other posts, when you calculate with fractional exponents in Python, the result is a float, so you get 3.0 rather than just 3.
22nd Dec 2019, 10:09 PM
Njeri
Njeri - avatar