Just a stupid question probably, but... Using Heron of Alexandria's algorithm to find the Square root of a number; how well does it work trying to find the square root X, if X=35? I find it to be flawed in this case. Am I just over thinking it?
MIT 6.00 Intro Computer Science (OCW)
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
The algorithm creates a never ending cycle of wrong answers in this case IMO. I'm sure that 35 wouldn't be the only instance of this failure.
6 The answer using this algorithm is obviously going to create an answer of 36 which is greater than 35
I guess the answer I am looking for is this, is 6 close enough?
Actual answer would obviously be 5.9160797831
Not the answer you are looking for? Search for more explanations.
I think there may be other flaws on some, for example if you carry on after 'getting close' you can generate a complete pile of mumbo jumbo !
Okay so it was a stupid question LOL. I just didn't double check my own results. I Started by looking for the SqR of 35 using the algorithm. I guessed by starting with G=5 , G*G=25, X/G=7, 1/2(G+X/G)=6, Repeat G=6, G*G=36, X/G=5.83333333333333 which is pretty close to the correct answer.