Question
MATLAB write: Use Newtons method to compute sqrt(R) in double precision by a) xn+1 = (xn+R/xn) b) xn+1 = [xn(xn2+3R)]/[3xn2+R] For R = 0.001, 0.1,
MATLAB write:
Use Newtons method to compute sqrt(R) in double precision by
a) xn+1 = (xn+R/xn)
b) xn+1 = [xn(xn2+3R)]/[3xn2+R]
For R = 0.001, 0.1, 10, and 1000 with a stopping criteria of 1) |xn+1-xn|< 10-14 2) |xn+1-xn|< 10-6.
i) Record the number of iterations required to reach the stopping criteria for each of the two methods for each value of R. ii) Plot the values of xn for methods a) and b) in the same plot with separate plots for the different R values.
iii) How sensitive are the iteration counts to your selected starting value?
iv) Which method converge the fastest?
v) Why?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started