









Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!










Computer Aided Analysis of Electronic Networks
Instructor: Dr. J. A. Starzyk, Professor
School of EECS
Ohio University
Athens, OH, 45701
Outline
Roots of Functions and Polynomials (cont’d)
where
i
z
are roots (zeros) of N(s) and
i
p are roots of
The best know general method for finding roots is the Newton-
Raphson method. This is an iterative method that uses function
and its derivative values. We start with an initial point
0
and expand the function
f ( x ) around this point:
( ) ( ) ( )( ) ...
0 1 0
'
1 0
f x f x f x x x
If we neglect higher order terms and want to find
1
x such that
1
f x
then
0 0
'
1 0
and
( )
( )
0
'
0
1 0
f x
f x
x x
Because this is an approximated solution we have to iterate.
The iterations can be illustrated as shown on the following figure
x
f
0
x
f
1
x
0
x
( )
0
'
tg f x
Newton – Raphson method (cont’d)
The method which always converges to a root of polynomial
( )
0
P x is called Laguerre’s method and is defined by
k k
n
k
n
k k
p x H
np x
x x
'
1
where
k
n
k
n
k
n
k
H n n P x nP x P x
"
2
'
and P ( x )
n
is a polynomial of degree n. It is advantageous to
first compute roots with small absolute values, thus initial
estimate should start with
0
8
Find one root of the polynomial
5 4 3 2
5
P x x x x x
' 4 3 2
5
'' 3 2
5
0
x
0
5
' 0
5
'' 0
5
P x
We have
And
Start at
4 4 6 5 1 26 56
0 2
H 7. 48
0
H
so
' 0 0
5
0
5
1 0
P x H
P x
x x
selected to havex x small
1 0
Third iteration:
0. 0012
2
5
P x 0. 0. 71
' 2
5
P x 2. 78
'' 2
5
P x
4 4 0. 071 5 0. 0012 2. 78 0. 014
2 2
H
2
H
48
071 0. 118
5 0. 0012
5
' 2 2
5
2
5 3 2
P x H
P x
x x
Exact solution to this problem is:
1 2 3
x x x
4
5
Noniterative method based on Taylor expansion
In the Newton-Raphson method the increment is used to
estimate the next iterate
1 0 '
0
0
We can generalize this approach by using higher order derivatives to
estimate the increment of the function value which brings it directly
to a solution of the nonlinear equation.
x
, , ...
''
0
'
0 , 0
0
x
0
x
(recomputed elements of the expansion)
count
i
(function Psi in the algorithm)
by differentiating equation in 2. As we approach the solution
count
gets smaller and smaller.
0 0 count
and repeat 2, 3, and 4 until
count ps
( 1 ( 1 ( 1 ..( 1 ))))
0 1 2 count
0
count
x
0
Notice that in this algorithm function and its derivatives are
only calculated at the initial point
0
x
The algorithm uses
i
i
i
dx
d f ( x )
0
0
to evaluate
function and its derivatives at new point, rather than
repeating
system analysis to get them
The Matlab code is as follows:
for i=l:size(F)
FnDeln(i)=Psi(i)*deltak^(i-1);
end
% find functions psi
for i=l:size(F)
Psi(i)=0;
for j=i:size(F)
Psi(i)=Psi(i)+FnDeln(j)/fact(j-i);
end
end
end % delta converged
del=l;
for i=count:-1:
del=l+delta(i)*del;
end
x=x0+del-1;
function y=fact(i)
% this function evaluates factorial of i
y=1;
for ii=l:i
y=y*ii;
end