Numerical methods for solving a nonlinear equation: The bisection method
Implementation of the bisection method (programming assignment)
Implement the bisection method in Python, i.e. define the following Python function:
def bisection_solve(f, a, b, tol=0.001, maxiter=100):
"""
Find the zero of the function f between a and b using the
Bisection Method with tolerance tol (default: 0.001) and
maximum number of iterations equal to maxiter (default: 100)
"""
Apply the bisection_solve
function to the polynomial on the interval once with the default value of the tolerance and with a tolerance of .
By the way, the exact and approximate zero within the interval is
Unlock full access