Question
Write C++ program which approximates one root of a polynomial in a closed interval of the real number line. Use the bisection method to approximate
Write C++ program which approximates one root of a polynomial in a closed interval of the real number line. Use the bisection method to approximate the root. The program must take as input (1) the number of iterations for the bisection method, (2) the endpoints of the interval containing the root, and (3) the coefficients of the polynomial in ascending degree. Also implement at least one function in your program to estimate the root in part or as a whole. The function(s) must not be trivialthey should perform a substantial part of the calculation and make the program more readable as a result. Here is a sample run.
please use simple code as possible.
How many iterations? 30 Enter the endpoints of the interval containing the root: 1 1.5 Enter the polynomial coefficients, ascending in degree: -3 1.5 0 1 Root estimate: 1.1036949 2 0 2 4 8Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started