Question: P 3 . The 'divide and average' method, an iterative method for obtaining the square root of a positive number a , can be formulated
P The 'divide and average' method, an iterative method for obtaining the square root of a positive number can
be formulated as:
where the subscript i indicates iteration to Write a PYTHON program based on a while loop to
implement this algorithm and then find the square root of correct up to five significant digits. Use the
approx. relative error criterion to assess convergence. Note, the approx. relative error in this case is defined as
Hint: You have to pick an initial value of A simple and effective guess could be
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
