New course! Every coder should learn Generative AI!
Try a free lesson+ 3
Show your attempt
+ 3
so to help you understand the question Heron’s Method is a way to find the square root by taking an approximate guess and returning a closer approximation to the real value of the square root. and the result will be more accurate depending on how much you repeat the process.
so let's say we want the square root of number 28, we know the real root of number 25 which is equal to 5 and we will apply the formella
(5+28/5)/2=5.3 the real value is 5.291 so it pretty accurate yet you can increase the accuracy one more time by using the new result that you have got
(5.3+28/5.3)/2
which results in 5.291 which is the actual value
what left is applying this in your code goodluck
+ 3
Numan Sayyed this is not place for asking for solutions. It is your homework, you went to college for some reason, so you should do it yourself instead of cheating
+ 3
Numan Sayyed welcome to SoloLearn! Please note that simply asking for answers to your homework without showing any effort or code attempts is not allowed. More than that, it's actually harmful for you - the more effort you put into something, the better you will remember it. This can equal better grades, which can mean a better job in the future. Moral of the story? Show your code attempts and try to identify the part you don't understand or are stuck on, then come ask a question.
Please have a look at the guidelines as well:
https://www.sololearn.com/discuss/1316935/?ref=app
0
Acctualy i can't understand so i am not created