Professional Documents
Culture Documents
Interactivos
Interactivos
Dx + Moffx = b
Where:
D is the diagonal matrix containing the diagonal entries of M
and Moff contains the off-diagonal entries of M. Because all
the entries of the diagonal matrix are non-zero, the inverse is
simply the diagonal matrix whose diagonal entries are the
reciprocals of the corresponding entries of D.
rhus, we may bring the off-diagonal entries to the right hand
side and multiply by D-1:
x = D-1(b - Moffx)
j 0 j j j j 0
j j j j j G j
j j j j j G
ï
º G ï º
º º
º ïº
Dontinue the iterations until two successive
approximations are identical when rounded to three
significant digits.
ro begin, write the system in the form:
G
0
0 0
[s a convenient initial approximation. So, the first
approximation is:
0 ï
0ï ïï
ï 0 ï
ï
0 ï 0 ï
0ï
D
n 0 1 2 3 4 5 6 7
X1 0.000 -0.200 0.146 0.192 0.181 0.185 0.186 0.186
X2 0.000 0.222 0.203 0.328 0.332 0.329 0.331 0.331
X3 0.000 -0.429 -0.517 -0.416 -0.421 -0.424 -0.423 -0.423
Because the last two columns in table are identical, you can
conclude that to three significant digits the solution is:
ï
ï
0ï
Solve the following system of equations:
j j j j G j
j j j j j j
jj j j j
G G G
0
[ ºº G G G
0 º
G G G
0 G
ï ï G
ï
G G G
G
G G
Iteration 1 º º
º º
º κ
r r xi rliv s l rr r:
G G >
r r xi
xi rliv
G G > s l rr r fr
firs iri n is 100%.
G G >
Substituting the above values into the equations
G
G
0 ïïï
ïïï
O º G º
º º
º º
rhe approximate relative absolute error:
G G >
rhe approximate
maximum relative
absolute error after
G G >
the second iteration
is 8.9%.
G G >
Substituting the above values into the equations
0
ïïï
0 ïïï ïïïï
O º º
º º
º º
rhe approximate relative absolute error:
G G
>
rhe approximate
maximum relative
absolute error after
G G >
the second iteration
is 0.06%.
G G >
ïïï
rhe resulting º ïïïïº rhe exact solution is: º G º
solution is: º º º º
º º º º
| rhe Gauss-Seidel method is a technique for solving the
equations of the linear system of equations [x = b one at a
time in sequence, and uses previously computed results
as soon as they are available,
A A
G
| rhere are two important characteristics of the Gauss-Seidel
method should be noted. åirstly, the computations appear
to be serial. Since each component of the new iterate
depends upon all previously computed components, the
updates cannot be done simultaneously as in the Jacobi
method. Secondly, the new iterate depends upon the order
in which the equations are examined. If this ordering is
changed, the ë of the new iterates (and not just
their order) will also change.
| In terms of matrices, the definition of the Gauss-Seidel
method can be expressed as
0 0 0
? ? ë
0
?
G G r
G G
º G þ º
Iteration 2 º º
þ º þ þº
?
G G
G ïï ïï ï G ï
?
G G
h G
h G h h
Ä
?
G G Ä
þ G
þþ G þ þ
| [nd we must make the followings iterations y and obtained:
º G º
º º
º º
| If [ is symmetric and positive definite, the Gauss-Seidel
method converges.
ÚG
u
where:
he spectral radius of the matrix Jacobi iteration method.
| http://www.google.com.co/imgres?imgurl=http://www.unav
arra.es/personal/victor_dominguez/portMatlab.jpg&imgref
url=http://www.unavarra.es/personal/victor_dominguez/lib
roMatlab.htm&usg=__g0H6VfxnJXinSq932hK[DW-
4mE=&h=423&w=596&sz=61&hl=es&start=19&itbs=1&t
bnid=qcEPr90K9KGOJM:&tbnh=96&tbnw=135&prev=/ima
ges%3åq%3DGauss-
Seidel%2Bcon%2Brelajaci%25D3%25B3n%26hl%3Des%26
sa%3DG%26gbv%3D2%26tbs%3Disch:1
| http://www.ana.iusiani.ulpgc.es/metodos_numericos/docu
ment/apuntes/Parte_4.pdf