How print (9**(1/2)) will be the output as 3.0 What it does mean? 1/2=0.5 then 9**means twice of 9 right, So 9x9x0.5=40.5right ? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
- 1

How print (9**(1/2)) will be the output as 3.0 What it does mean? 1/2=0.5 then 9**means twice of 9 right, So 9x9x0.5=40.5right ?

28th Feb 2021, 6:25 AM
Udhaya Kumar
Udhaya Kumar - avatar
10 Respuestas
+ 5
9**0.5 is the square root of 9 m**(1/n)=nth root of m 27**(1/3) = 3‚ąö27 =3.0
28th Feb 2021, 6:27 AM
TOLUENE
TOLUENE - avatar
+ 1
Oh okay sir
28th Feb 2021, 6:28 AM
Udhaya Kumar
Udhaya Kumar - avatar
+ 1
Please specify a programming language tag in your questions. This looks like python. The code (9**(1/2)) calculates the square root of 9 where 9 is our base, ** is the exponentiation operator and 1/2 is our power. Python will determine 1/2 as it is first in Order Of Precedence. The output is a float. 9^(0.5) = 3.0
28th Feb 2021, 6:32 AM
CouldntBeBothered.py
CouldntBeBothered.py - avatar
+ 1
Remember: x**(1/2) == square root(x)
28th Feb 2021, 6:48 AM
‚ąÜBH‚ąÜY
‚ąÜBH‚ąÜY - avatar
0
I don't understand
9th Nov 2021, 11:11 AM
Sanju Sharma
0
Explain me please ūüėā
9th Nov 2021, 11:13 AM
Sanju Sharma
0
I don't understand how the answer is 3 either. I. just need to figure out, how to get to the answer.
20th Aug 2022, 12:16 AM
Sheneka
0
I don't understand
16th Nov 2022, 3:25 PM
Dinesh Kumar Sahu
Dinesh Kumar Sahu - avatar
0
I also dont understand
5th Apr 2023, 5:48 AM
UCHE CHINEDU
- 1
Ok dude
28th Feb 2021, 6:41 AM
Udhaya Kumar
Udhaya Kumar - avatar