Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this homework, you will implement the Horner's method for applying Newton method on polynomials 1. Get the polynomial from the command line in this

image text in transcribed

In this homework, you will implement the Horner's method for applying Newton method on polynomials 1. Get the polynomial from the command line in this order, starting from the highest order get the coefficient and then exponent, if the coefficient is 0 do not enter the coefficient and exponent. The last number is the initial point. The coefficients can be float numbers. For example: 24 -3 2 3 1 -4 0-2 Means: 2x^4 -3x^2 + 3x -4 x0 = -2 2. Continue until the relative error is less than 10^-4 or 10 iterations. 3. Use the knowledge that you have from your data structures class to implement an efficient data structure. 4. Print out the results at each step (Like in the example showed in the class and in book) 5. Check for error in the input and do not process in case of error in the input (for example the number of inputs that the users insert should be odd) In this homework, you will implement the Horner's method for applying Newton method on polynomials 1. Get the polynomial from the command line in this order, starting from the highest order get the coefficient and then exponent, if the coefficient is 0 do not enter the coefficient and exponent. The last number is the initial point. The coefficients can be float numbers. For example: 24 -3 2 3 1 -4 0-2 Means: 2x^4 -3x^2 + 3x -4 x0 = -2 2. Continue until the relative error is less than 10^-4 or 10 iterations. 3. Use the knowledge that you have from your data structures class to implement an efficient data structure. 4. Print out the results at each step (Like in the example showed in the class and in book) 5. Check for error in the input and do not process in case of error in the input (for example the number of inputs that the users insert should be odd)

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 Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

6. The cost of the training creates a need to show that it works.

Answered: 1 week ago