Question #58301

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


x2S=0x ^ {2} - S = 0


Therefore, any general numerical root-finding algorithm can be used for solving (1). Let f(x)=x2Sf(x) = x^{2} - S , f(x)=2xf'(x) = 2x . In Newton's method we use the following recurrent equation


xn+1=xnf(xn)f(xn)x _ {n + 1} = x _ {n} - \frac {f (x _ {n})}{f ^ {\prime} (x _ {n})}xn+1=xnxn2S2xnx _ {n + 1} = x _ {n} - \frac {x _ {n} ^ {2} - S}{2 x _ {n}}xn+1=xn+Sxn2x _ {n + 1} = \frac {x _ {n} + \frac {S}{x _ {n}}}{2}


Using condition, here S=11S = 11 , n=0,1,2,3,n = 0,1,2,3,\ldots is a number of iteration step, and xnx_{n} is the approximation for square root on the nn -th step of the iterative process. Substitute for S=11S = 11 in formula (2):


xn+1=xn+11xn2x _ {n + 1} = \frac {x _ {n} + \frac {1 1}{x _ {n}}}{2}


Choose the zero-approximation, and let it be x0=3.2<11x_0 = 3.2 < \sqrt{11} for instance.

Therefore, the calculations for next approximations will be following:

1. x1=3.2+113.223.31875x_{1} = \frac{3.2 + \frac{11}{3.2}}{2} \approx 3.31875

2. x2=3.31875+113.3187523.31663x_{2} = \frac{3.31875 + \frac{11}{3.31875}}{2} \approx 3.31663

3. x3=3.31663+113.3166323.31662x_{3} = \frac{3.31663 + \frac{11}{3.31663}}{2} \approx 3.31662

The difference between x3x_{3} and x2x_{2} is less or equal to 0.00001. Thus, the required accuracy is attained and x3x_{3} is the appropriate approximation


SQRT(11)=113.31662S Q R T (1 1) = \sqrt {1 1} \approx 3. 3 1 6 6 2


Answer: 113.31662\sqrt{11} \approx 3.31662

www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS