I want to make a Python program that will run a bisection method to determine the root of:
f(x) = -26 + 85x - 91x2 +44x3 -8x4 + x5
The Bisection method is a numerical method for estimating the roots of a polynomial f(x).
Are there any available pseudocode, algorithms or libraries I could use to tell me the answer?
Basic Technique
Here’s some code showing the basic technique:
Tolerance
To exit early when a given tolerance is achieved, add a test at the end of the loop: