Professional Documents
Culture Documents
A New Approach To Find Roots of Nonlinear Equations by Hybrid Algorithm To Bisection and Newton-Raphson Algorithms
A New Approach To Find Roots of Nonlinear Equations by Hybrid Algorithm To Bisection and Newton-Raphson Algorithms
kah682001@yahoo.com , drhaider20032000@yahoo.com
Abstract
The root-finding problem is one of the most important computational problems and
applications. In this paper we introduced a new algorithm to finding real roots of single non-
linear equations by hybrid between the Bisection algorithm and Newton-Raphson algorithm with
described and comparison between them.
نهج جديد إلياد جذور المعد الت غير الخطية من قبل خوارزمية هاينة من خوارزميدت
التنصيف ونيوتن رافسون
خالد علي حسين، حيدركاظم حمود. د، عبدعلي حمودي الطائي.د
:الملخص
في هذا البحث قدمنا خوارزمية جديدة اليجاد. أيجاد جذور المعادلة الالخطية تعتبر احد اهم المشاكل الحسابية وتطبيقاتها
رافسون مع الوصف-الجذور الحقيقية للمعادالت الالخطية عن طريق مزيج بين خوارزمية التنصيف وخوارزمية نيوتن
. والمقارنة بينهم
75
0251 لسنة-العدد االول-المجلد السابع المجلة العراقية لتكنولوجيا المعلومات
1. Introduction
Numerical analysis is a very important branch of computer science that deals with the
study of algorithms that use numerical approximation in mathematical analysis. It involves the
study of methods of computing numerical data. It has its applications in all fields of engineering
and the sciences [1].
The algorithms in that study uses in several applications like as, uses bisection method in
electrical engineering [2], and implemented on an electrical circuit element [3], also uses in
image processing to adaptive filters, like as [4] using Newton-raphson method to improve two
novel algorithms CB (Center-to-Boundary) and BB (Boundary-to-Boundary) filters.
In this paper, we introduce a new algorithm to find the real roots of single nonlinear
equation, its Hybrid algorithm. It is organized as follows: section 2 establishments to root-
finding, Bisection and Newton-Raphson methods, section 3 putting hybrid algorithm, section 4
conclusion and results, section 5 future work.
2. Root-finding Algorithm
The root-finding problem is one of the most important computational problems. It rises in a
wide variety of practical applications in mathematics, physics, chemistry, biosciences,
engineering, etc. As a matter of fact, determination of any unknown appearing implicitly in
scientific or engineering formulas gives rise to a root-finding problem. A root-finding algorithm
is a numerical method to finding a value x such that f(x)=0 , for given function f. Numerical
root-finding methods use iteration, producing a sequence of numbers that hopefully converge
towards a limit (the so-called "fixed point") which is a root. The first values of this series are
initial guesses. The method computes subsequent values based on the old ones and the function f.
The Bisection (Binary Search) method which is based on the Intermediate value Theorem
(IVT).The bisection method in mathematics is a root-finding method that repeatedly bisects an
interval and then selects a subinterval in which a root must lie for further processing. It is a very
simple and robust method, but it is also relatively slow. Because of this, it is often used to obtain
a rough approximation to a solution which is then used as a starting point for more rapidly
converging methods. The method is also called the interval halving method, the binary search
method, or the dichotomy method [5][7] [8]. If f(x) is continuous on [a,b] with f(a) and f(b) of
opposite sign .The main idea of bisection method that[9] :
76
0251 لسنة-العدد االول-المجلد السابع المجلة العراقية لتكنولوجيا المعلومات
If f ( c ) =0 , then c is a root
This method is distinguished from the methods by the fact that it requires the evaluation
of both the function f( x) and the derivative df (x) at arbitrary points x, where df is derivative of
function f.
Step 1 : i=1
Step 2 : x = x0 - f ( xo ) / df(xo)
Step 4 : x0 = x
3. Hybrid algorithm
This algorithm is a new approach to compute the roots of nonlinear equations f(x)=0, by
propose hybrid algorithm between the Bisection algorithm and Newton-Raphson algorithm. It’s
take a first approximation by apply two times the Bisection method and complete a correct
approximation by use the Newton-Raphson method.
77
0251 لسنة-العدد االول-المجلد السابع المجلة العراقية لتكنولوجيا المعلومات
Step 2 : xi = (a+b) / 2
Step 5 : Else a = xi
Step 7 : x = xi - [ f ( xi ) / df (xi) ]
78
0251 لسنة-العدد االول-المجلد السابع المجلة العراقية لتكنولوجيا المعلومات
Start
for i=1 To 2
xi= (a+b)/2
Yes
No
No Yes
a=xi
for i=1 To N
Yes
f(xi)< δ ?
No
xi=x
end for
Stop
Hybrid algorithm
79
0251 لسنة-العدد االول-المجلد السابع المجلة العراقية لتكنولوجيا المعلومات
Tables (1), (2), and (3) show the results of implement the above three algorithms. From
these results, the Hybrid method is better than Bisection method with respect to number of
iterative and elapsed time, but the result between Hybrid method and Newton-Raphson method is
convergent.
The serial Bisection method needs log2 [(b-a)/Ɛ] function evaluations, additions and
multiplications to enclose the zero in an interval of length Ɛ . The serial Newton-Raphson
method needs log2 Ω, where Ω is the number of iterative operations needs to reach f(x) < δ
(tolerance). So the number of operations of Hybrid is needs log2 [(b-a) / Ɛ] + log2 Ω, thus the
number of operations.
80
0251 لسنة-العدد االول-المجلد السابع المجلة العراقية لتكنولوجيا المعلومات
27 -5.5745065 -0.0000024
28 -5.5745065 -0.0000005
Elapsed time is 0.014695 Elapsed time is 0.014336 Elapsed is 0.014451 Elapsed time is 0.014487
seconds. seconds. seconds. seconds.
Interval =[-6,-4]
First approximate Second approximate
i c F( c ) a b c x F(c ) dF(c )
1 -5.000000 -6.0000000 -4.000000 -106.000 2 -5.500000 -5.5773616 -17.8125000 -230.2500000
2 -5.500000 -6.0000000 -5.000000 -17.8125 3 -5.577361 -5.5745105 0.7090557 -248.6955921
4 -5.574510 -5.5745065 0.0009868 -248.0035566
5 -5.574505 -5.5745065 0.0000000 -248.0025915
Elapsed time is 0.014242 seconds.
Interval =[-2,0]
First approximate Second approximate
i c a b F( c ) c x F(c) dF(c)
1 -1.000000 -2.000000 0.000000 -6.00000 2 -0.5000000 -0.9025424 5.9375000 14.7500000
2 -0.500000 -1.000000 0.000000 5.93750 3 -0.9025424 -0.8022361 -2.9556975 29.4667341
4 -0.8022361 -0.7951032 -0.1839870 25.7941074
5 -0.7951032 -0.7950666 -0.0009341 25.5321761
6 -0.7950666 -0.7950666 -0.0000000 25.5308325
Elapsed time is 0.014596 seconds.
Interval =[0,2]
First approximate Second approximate
i c a b F( c ) c x F(c) dF(c)
1 1.000000 0.000000 2.000000 -4.00000 2 0.5000000 0.8289474 4.6875000 -14.2500000
2 0.500000 0.000000 1.000000 4.68750 3 0.8289474 0.7863419 -0.7841777 -18.4055803
4 0.7863419 0.7859721 -0.0066870 -18.0803686
5 0.7859721 0.7859721 -0.0000006 -18.0772498
Elapsed time is 0.014393 seconds.
Interval=[2,4]
First approximate Second approximate
i c a b F( c ) c x F(c) dF(c)
81
0251 لسنة-العدد االول-المجلد السابع المجلة العراقية لتكنولوجيا المعلومات
5. Future Work
Convert the Hybrid Algorithm to parallel numerical algorithm.
Convert the bisection and Newton-Raphson Algorithms to parallel numerical algorithms
with comparison with parallel Hybrid algorithm.
Implement Hybrid Algorithm in different application field, for example ciphering, image
processing, electrical engineering, etc.
References
82