Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON you are to write a program that will find a root of a cubic polynomial. A cubic polynomial is of the form: You should

PYTHON

you are to write a program that will find a root of a cubic polynomial. A cubic polynomial is of the form:

image text in transcribed

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 ab 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.

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 Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

How are the securities lending market regulated?

Answered: 1 week ago

Question

outline some of the current issues facing HR managers

Answered: 1 week ago