Clase 8 Calculo Numerico I
Clase 8 Calculo Numerico I
Métodos Iterativos:
método de Gauss-Seidel
new
x x old
a ,i i
new
i
100% s
x i
Jacobi iteration Method
u u
1
x y
v v
1
x y
Convergence Criterion for Gauss-Seidel
Method (cont’d)
• Similarly, in case of two simultaneous equations, the
Gauss-Seidel algorithm can be expressed as:
b1 a12
u (x 1 , x 2 ) x2
a11 a11
b 2 a21
v (x 1 , x 2 ) x1
a22 a22
u u a12
0
x 1 x 2 a11
v a21 v
0
x 1 a22 x 2
Convergence Criterion for Gauss-Seidel
Method (cont’d)
Substitution into convergence criterion of two linear
equations yield:
a12 a21
1, 1
a11 a22
In other words, the absolute values of the slopes must be
less than unity for convergence:
a11 a12 For n equations
n
j i
That is, the diagonal element must be greater than the off-
diagonal element for each row.
Gauss-Siedel Method- Example 1
7.85 0.1x2 0.2 x3
3 0.1 0.2 x1 7.85 x1 3
0.1 x 19.3 19.3 0.1x1 0.3 x3
7 0.3 2 x2
7
0.3 0.2 10 x3 71.4 x3 71.4 0.3 x1 0.2 x2
10
x i
new
x i
new
1 x old
i
8 x1 x2 2 x3 20
3x1 x2 7 x3 34
2 x1 6 x2 x3 38
8x 1 x 2 2x 3 20
Rearrange so that the
equations are 2x 1 6x 2 x 3 38
diagonally dominant
3x 1 x 2 7 x 3 34
20 x2 2 x3 38 2 x1 x3 34 3x1 x2
x1 x2 x3
8 6 7
Gauss-Siedel Method- Example 2