Exercise: Newton's Method
Question
Write a program to estimate the square root of 612 using Newton’s method, using five iterations. Here are the necessary detail on Newton’s method:
-
The square root of 612 is the root of the equation .
-
Suppose , then its derivative .
-
To find the root of , we start with an initial guess as the root, say .
-
With , we iteratively compute the values
If for any , where that’s our solution. Otherwise, we iterate a few times to get better approximations. Newton’s method does not guarantee termination.
Exercise: Newton's Method
Question
Write a program to estimate the square root of 612 using Newton’s method, using five iterations. Here are the necessary detail on Newton’s method:
-
The square root of 612 is the root of the equation .
-
Suppose , then its derivative .
-
To find the root of , we start with an initial guess as the root, say .
-
With , we iteratively compute the values
If for any , where that’s our solution. Otherwise, we iterate a few times to get better approximations. Newton’s method does not guarantee termination.