use newton's method to approximate SQRT of 11 to 5 decimal places
1
Expert's answer
2016-03-09T08:36:43-0500
Answer on Question #58301 – Math – Algorithms | Quantitative Methods
Question
Use newton's method to approximate SQRT of 11 to 5 decimal places.
Solution
Finding SQRT(S) is the same as solving the equation
x2−S=0
Therefore, any general numerical root-finding algorithm can be used for solving (1). Let f(x)=x2−S , f′(x)=2x . In Newton's method we use the following recurrent equation
Using condition, here S=11 , n=0,1,2,3,… is a number of iteration step, and xn is the approximation for square root on the n -th step of the iterative process. Substitute for S=11 in formula (2):
xn+1=2xn+xn11
Choose the zero-approximation, and let it be x0=3.2<11 for instance.
Therefore, the calculations for next approximations will be following:
1. x1=23.2+3.211≈3.31875
2. x2=23.31875+3.3187511≈3.31663
3. x3=23.31663+3.3166311≈3.31662
The difference between x3 and x2 is less or equal to 0.00001. Thus, the required accuracy is attained and x3 is the appropriate approximation
Comments