You are to write a program that will find a root of a cubic polynomial. A cubic
Fantastic news! We've Found the answer you've been seeking!
Question:
You are to write a program that will find a root of a cubic polynomial. A cubic polynomial is of the form:
You should write a program that takes in the coefficients of the polynomial: A, B, C, and D, along with a bound on one single root: a,b. The user should be expected to input a and b such that a<b and there is exactly one single root of the polynomial between a and b. You should report the value of the root, accurate to within 10-6.
you should create a program that performs bisection to determine the root. More specifically, your program should do the following:
- Read in the coefficients of the polynomial from the user
- Read in the upper and lower bounds around a single root of the polynomial
- Determine the value of that root to within 10-6
- Print the result of that root finding, as a single number
- Print out how many iterations it took to find that root.
Be sure to include comments in your code.
PYTHON
Related Book For
Statistics for Managers Using Microsoft Excel
ISBN: 978-0133130805
7th edition
Authors: David M. Levine, David F. Stephan, Kathryn A. Szabat
Posted Date: