Question: Code in Visual Studio C++ use beginner/intermediate code One method of finding the roots of a function, YCX), is the Newton Approximation method. In this

Code in Visual Studio C++ use beginner/intermediate code

Code in Visual Studio C++ use beginner/intermediate code One method of finding

One method of finding the roots of a function, YCX), is the "Newton Approximation" method. In this method you start with an initial guess for the root (Xo) and find a new guess (Xn) for the root using the following relation: Y (Xo) where EY) is the value of the function at Xo and(Y) is the derivative ofthe function evaluated at Xo. If the difference between Xo and Xn is less than 0.00001, then Xn is a root. Otherwise, make Xo - Xn and repeat the above process to find a new value of Xn until the difference is less than 0.00001 Write a program that uses the Newton method for finding the roots of function F(X)-XX -34X - 80. The derivative of the function is (X) -3X +10X-34 Use -20, 0, and 20 as three separate initial guesses for the three roots of this function. Write the outputs of the program to a file using the format indicated in the table shown below As an example take F(X)-X2-3x + 2 ; the derivative isX)-2X-3. Starting from an initial guess Xo -3, the following repetition yields a root equal to 2.00000 for the function. In order to get the second root of this function, the above sequence can be repeated using another initial guess. 3.00000 2.00000 3.00000 2.33333 2.333330.44444 1.66667 2.06667 2.06667 0.0711 113333 2.00392 2.00392 0.00394 1.00784 2.00002 2.00002 0.00002 1.00003 2.00000 2.00000 0.00000 1.00000 2.00000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!