Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i want a C++ program Root finding is one of the most important topics for several engineering specializations. It is used in automatic control design

image text in transcribedi want a C++ program

Root finding is one of the most important topics for several engineering specializations. It is used in automatic control design as well as in solving optimization problems for machine leaming. In this project, we are going to solve the following root finding case f(x)=anxn+an1xn1+an2xn2++a1x+a0=0 The requirements will be as follows: 1. The user must input the polynomial as an input string. Then your program makes sure it is in correct format and hence finds the order n and the coefficients, a. 2. Coefficients will be stored in a dynamic array. An example of the input will be a string as follows: 5x3x2+2.5x+1 This means a third order polynomial with coefficients of 5,1,2.5, and 1 . 3. The program should never ask the user of the order of the equation or to input the coefficients except in the form of the string as shown in the example. 4. The program will detect any error encountered with the user input. The following are error examples: 5x3x2+2.5x+5x3x+2.5x+15x3x2+2.5x+1 5. The program will print all the real and complex roots of polynomials. 6. Your program must be able to work for polynomials up to the fifth order. 7. The students will demonstrate the use of pointers, strings, and different arithmetic and mathematical operations or algorithms used in their implementations. 8. Ten different testing cases must be demonstrated with validated roots to show the efficiency of the implemented program

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 Theory Icdt 99 7th International Conference Jerusalem Israel January 10 12 1999 Proceedings Lncs 1540

Authors: Catriel Beeri ,Peter Buneman

1st Edition

3540654526, 978-3540654520

More Books

Students also viewed these Databases questions

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago