Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions