Implementation of the Bisectional Method
Here are several ways to implement Algorithm 2.1 into a Matlab code:
A simple code where the user has to define a separate function f(x). Click here for
and the function f.m
for Algorithm 2.1.
A simple code where the user is prompted for the function, and relevant imput parameters. Click here for
A more sophisticated, more complicated implementation (from the book). Click here for
Textbook inmplementation of Algorithm 2.1