Numerical Lab Report 1
Numerical Lab Report 1
of
Electrical & Electronic Engineering
Lab. Report on
Experiment No: 01
Exp. Name: Solution to non-linear equation using Bisection Method.
2. Theory:
Bisection Method:
The bisection method is a numerical root-finding algorithm that works by repeatedly
dividing an interval in half. It assumes that the function is continuous over the interval
and changes sign at the endpoints. The method iteratively narrows down the interval until
the desired accuracy is achieved.The method is shown graphically below
Input Parameters:
1. Function Definition: The user is prompted to enter the nonlinear function in symbolic
form.
2. Initial Guesses: The user is asked to input the initial guesses for the interval, a and b,
where the function changes sign.
3. Number of Iterations: The user specifies the maximum number of iterations to be
performed.
4. Tolerance: The user defines the desired tolerance for the root.
6.Discussion:
The MATLAB code demonstrates the bisection method to find the root of the nonlinear equation
f(x) = x2+ 2x - 2. We input the function, initial guesses, maximum iterations, and tolerance. The
bisection method iteratively divides the interval containing the root in half until the desired
accuracy is achieved. The output shows the root approximations at each iteration. The final
calculated root is 0.7324, which is within the specified tolerance.