Professional Documents
Culture Documents
HTTPS://SITES.GOOGLE.COM/SITE/JOURNALOFCOMPUTING/
WWW.JOURNALOFCOMPUTING.ORG 42
Abstract— we can solve equations numerically using a lot of methods and also using the second order equation like Muller
method. In this paper I used the generated function idea which depends on polynomials to convert each subinterval to second
order equation using the linear equations system in order to get approximation accurate solution. I made a MATLAB code that
simulate this method and deduced wonderful results included in this paper.
Index Terms— Numerical solution for solving equations, solving equations generally by computer, MATLAB code program to
simulate the idea and solve any equation.
—————————— ——————————
1 INTRODUCTION
We have to put in our consideration that narrower First step: we will divide the wide range (wide interval)
intervals can be replaced with low number of terms. From the function f(x) = 0 that we expect the solutions
If we want to replace the interval with g(x) with three exist on it in to subintervals.
g(x) = a0 + a1x + a2x2 Second step: each subinterval will be converted to the
the interval distributed equally over the interval. F(x) g(x) = a0+ a1x1+ a2x2
f(x1) = a0+ a1* x1+ a2 * x12 And to deduce a0, a1, a2 we have to solve the below three
f(x2) = a0+ a1* x2+ a2 * x22 equations using the linear equations system
f(x1) = a0+ a1* x1+ a2 * x12
————————————————
f(x2) = a0+ a1* x2+ a2 * x22
Graduated engineer from Alexandria university, Egypt, Electrical
department, sector of communications and electronics f(x3) = a0+ a1* x3+ a2 * x32
JOURNAAL OF COMPUTING, VOLUME
V 3, ISSUE 5, MAY
M 2011, ISSN 2151-9617
HTTPS:///SITES.GOOGLE.COM
M/SITE/JOURNALOFCOMPUTING/
WWW.JO OURNALOFCOMPUTING.ORG 43
where
e x1 and x3 arre the limits off the subinterv
val (first and about the sttep width we take over x-a
axis to define each
end p
points of it) an point between them in half
nd x2 is a midp width and the
subinterval w e number of the operation
ns we
of the
e distance ove
er x-axis betwe
een x1, x3. made to co
over the who
ole range we
e expect that the
Third ave g(x) and now we will put it in the
d step: we ha solution exisst inside it be
eside the accu
uracy of the rresult
form and its relati on with the ste
ep width.
1 2
g((x) = a0+ a1x + a2x = 0
4.1. The ste
ep width and
d number of subintervals
s
And w
we will solve itt using the fam
mous role
4.3. Function with high rate of change or has We can choose the step width by compare the error
frequency values of g(x) with the original curve and if we have high
error then we will substitute in the rule with high error
Functions with high rate of change or high frequency must result then we can't expect accurate results.
take small steps to ensure the accuracy. We can't take
step=1 for functions like sin(100x) or exp(10x) in the other
hand we can take step = 1 for function like ln(x).
5 MATLAB PROGRAM CODE SIMULATE THIS METHOD FOLLOWED BY MULTIPLE EQUATIONS SOLVED BY IT
AND COMPARED WITH OTHER NUMERICAL METHODS RESULTS
I made a MATLAB code that simulate the steps I mentioned in this paper for making a numerical solution for an input
equation that we give it to the program and the program use this steps with g(x) with three terms and step width = 1/8
to ensure the accuracy. I made a table after the code with multiple equations that I solved with this code and compares
it with the result from some computers programs that used other numerical methods.
end
JOURNAL OF COMPUTING, VOLUME 3, ISSUE 5, MAY 2011, ISSN 2151-9617
HTTPS://SITES.GOOGLE.COM/SITE/JOURNALOFCOMPUTING/
WWW.JOURNALOFCOMPUTING.ORG 45
if isreal(v)==1
s=v;
end
t=t+1/8;% we move to the next subinterval to make the same %
end
y
% after we done from the range the matrix y that stores all the solutions will
shown up after we activate the code%
Equation to be solved The range Solutions with the Solutions with numerical
method in this paper methods used in computer
with step = 1/8 using program like winplot and
the code I made MATLAB
x^4-x^2-10=0 -5,5 -1.9240,1.9240 -1.9239, 1.9239
sin(x)-x^2+3=0 -3,5 -1.4183 ,1.9793 -1.41831,1.97932
sin(5*x^2) – x^2=0 -1,1 -0.7208,0,0.7208 -0.72052,0,0.72052
exp(x)-x^3=0 -3,10 1.8572,4.5364 1.85718,4.53640
exp(x^2)-exp(x)-x^6=0 -5,5 -2.1313,-1.3369, -2.13076,-1.33703,
0,2.1818 0,2.18158
(x-100)^6-10^(x-100)=0 50,110 99.2501 99.25008
x^4-x^2-10=0 -4,4 -1.9240,1.9240 -1.92394,1.92394
[5] Ka
aw, Autar; Kalu 8). Numerical Methods
u, Egwu (2008
with A
Applications (1
1st ed.).
ewton Method
[8] P. Deuflhard, Ne ds for Nonlineaar Problems.
e Invariance and
Affine a Adaptive Algorithms.
A Springer
Seriees in Computational Mathem
matics, Vol. 35.. Springer,
Berlin
n, 2004. ISBN 3-540-21099--7.
[10] T
Tjalling J. Ypm
ma, Historical development
d of
o the
Newtton-Raphson method,
m SIAMM Review 37 (44), 531–551,
1995.