0

How to finde a squar root of a number without import any library...

Square root

18th May 2017, 6:08 PM
Ailton Devesse
Ailton Devesse - avatar
3 Respuestas
+ 19
√ means the power of 1/2 : print(4**0.5)
18th May 2017, 6:15 PM
Dev
Dev - avatar
+ 5
Here it is : say it needs square root of 10 >>>10**(1.0/2) 3.1622776601683795 Reason for writing 1.0 is, it will return float value 0.5 if we write it as 1/2, it will return round off to Zero Parenthesis is used, as exponential has higher precedence than division, we need result of division first. With parenthesis, division will get higher precedence.
18th May 2017, 6:30 PM
Popat
Popat - avatar
+ 1
Thank you It worked
18th May 2017, 6:59 PM
Ailton Devesse
Ailton Devesse - avatar