Professional Documents
Culture Documents
“Bisection method”
Instructed by Chhorn sopheaktra
1. Plotting method
There are many ways to find the root of an equation. One of them is
using the plotting tool. This method is very simple because the user can
use matlab to display the graph of any equation and they can spot the
root of the equation manually.
1.1. Algorithm
Figure 1
1.2. Practice 1
2. Bisection method
The Bisection Method, also called the interval halving method,
the binary search method, or the dichotomy method. is based on the
Bolzano’s theorem for continuous functions.
Theorem (Bolzano): If a function f(x) is continuous on an interval [a,
b] and f(a)·f(b) < 0, then a value c ∈ (a, b) exist for which f(c) = 0.
2.1. Algorithm
Remark: the number of time that use to calculate the middle value is
called “iteration”. There is an example code in below section or you
can use example code with the file name plotting method.
2.2. Practice 2
else
disp('Incorrect interval, Can not apply bisection method');
end