Professional Documents
Culture Documents
Introduction
A root finding algorithm is an algorithm for finding roots of continuous functions. Numerical root-
finding iteration, produces a sequence of numbers that converge towards the root as limit. The
efficiency of an algorithm may depend on the characteristics of the given functions. The bisection
method is discussed more thoroughly compared to other methods because it is the focus of this paper.
2. Root-finding algorithms
2.1 Bracketing Methods
Bracketing methods determine successively smaller intervals that contain a root. These
techniques are called bracketing methods because two initial guesses for the root are required.
2.1.1 Bisection Method
The bisection method is a type of incremental search method in which the interval is
always divided in half. If a function changes sign over an interval, the function value
at the midpoint is evaluated. The location of the root is then determined as lying at the
midpoint of the subinterval within which the sign change occurs. The process is
repeated to obtain refined estimates.
2.1.2 False position (regula falsi)
Step 1. Choose lower xl and upper xu guesses for the root such that the function changes sign over
the interval. This can be checked by ensuring that f(xl)f(xu)< 0.
Step 2. An estimate of the root is determined by calculating the midpoint xm of the interval.
+
=
2
Step 3. Make the following evaluations to determine in which subinterval the root lies:
(a) If f(xl)f(xu)< 0, the root lies in the lower subinterval. Therefore, set xu= xm and return to
step 2.
(b) If f(xl)f(xu)> 0, the root lies in the upper subinterval. Therefore, set xl = xm and return to
step 2.
(c) If f(xl)f(xu)= 0, the root equals xm; terminate the computation.
Step 4. Check if the percent accuracy | | | |.
, ,
| | = | | 100
,
If | |> | |, return to step 3.