Question: Use Newtons method to compute sqrt(R) in double precision by x n+1 = (x n +R/x n ) (20 points) x n+1 = [x n
Use Newtons method to compute sqrt(R) in double precision by
- xn+1 = (xn+R/xn) (20 points)
- xn+1 = [xn(xn2+3R)]/[3xn2+R] (20 points)
For R = 0.001, 0.1, 10, and 1000 with stopping criteria of 1) |xn+1-xn|< 10-14 2) |xn+1-xn|< 10-6.
- Record the number of iterations required to reach the stopping criteria for each of the two methods for each value of R.
- Plot the values of xn for methods a) and b) in the same plot with separate plots for the different R values.
- How sensitive are the iteration counts to your selected starting value?
- Which method converge the fastest?
- Why?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
