0
How to finde a squar root of a number without import any library...
Square root
3 ответов
+ 19
√ means the power of 1/2 :
print(4**0.5)
+ 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.
+ 1
Thank you
It worked