MATLAB is develop for mathematics, therefore MATLAB is the abbreviation of MATrix LABoratory.Īt here, we find the root of the function f(x) = x 2-2 = 0 by using Bisection method with the help of MATLAB. MATLAB is easy way to solve complicated problems that are not solve by hand or impossible to solve at page. The disadvantage of this method is that it is slow compare than other numerical methods to solve nonlinear equation.Īt here, we write the code of Bisection Method in MATLAB step by step. Bisection method is bracketing method because its roots lie within the interval. If convergence is satisfactory (that is, c - a is sufficiently small, or f ( c ) is sufficiently small), return c and. Calculate the function value at the midpoint, f ( c ). It is also known as binary search method, interval halving method, the binary search method, or the dichotomy method and Bolzano’s method. Each iteration performs these steps: Calculate c, the midpoint of the interval, c a + b / 2. Bisection method is root finding method of non-linear equation in numerical method.