The ancient Babylonians had an algorithm for determining the square root of a number a. Start with

Question:

The ancient Babylonians had an algorithm for determining the square root of a number

a. Start with an initial guess of a / 2. Then find the average of your guess g and a / g. That’s your next guess. Repeat until two consecutive guesses are close enough. Write pseudocode for this algorithm.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: