Professional Documents
Culture Documents
Submitted by:
Ayush Timalsina
Jaya Multiple Campus
BCA 4th Semester
BISECTION METHOD:
Bisection method is an iterative implementation of the
intermediate value theorem to find the real roots of a nonlinear
function. According to the theorem “if a function f(x)=0 is
continuous in an interval (a , b) ,such that f(a) and f(b) are
opposite nature or opposite sign .
Let f(x) be the given function and f(a) and f(b)=f(xb) such that
f(a)-f(b)<0. The root lies between xa and xb .
It shows xa and ab are two initial guesses which bisects the root
.the basic of this algorithm relies on the repeated application of
Let xc = (xa+xb)/2
If fc = f(xc)= 0 , x=xc is the exact root
Fa.fb<0, the root lies in the interval(xa,xc)
Else
Root lies in the interval of (xc,xb)
Advantages:
Disadvantages:
Output:
Conclusion:
Hence, The bisection method is a root-finding method that applies
to any continuous functions for which one knows two values with
opposite signs.