Question: R1.19 The ancient Babylonians had an algorithm for determining the square root of a number a. Start with an initial guess of a / 2.
R1.19 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. Thats your next guess. Repeat until two consecutive guesses are close enough. Write pseudocode for this algorithm.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
