Lecture 9
Lecture 9
Solution of
System of Linear equation
83 x 11 y 4 z 95
7 x 52 y 13 z 104
3 x 8 y 29 z 71
95 11 4
x y z
83 83 83
104 7 13
y x z
52 52 52
71 3 8
z x y
29 29 29
Department of Computer Science
First Iteration
4
95 11
x y z
83 83 83
x 1.1446
(1)
(1)
y 2.0000
104 7 13
y x z
52 52 52
71 3 8 z (1) 2.4483
z x
29 29
y
29
Department of Computer Science
Second Iteration
y 2.0 0.1346 x 0.25 z
(2) (1) (1)
(1)
z 2.4483 0.1035 x 0.2759 y
(2) (1)
x 0.9976
(2)
(2)
y
1.2339
z (2) 1.7424
Iteration x y z
number r
1 1.1446 2.0000 2.4483
2 0.9976 1.2339 1.7424
3 1.0651 1.4301 2.0046
4 1.0517 1.3555 1.9435
5 1.0587
Department of Computer Science
1.3726 1.9655
Your Turn
4 x1 x2 x3 2
x1 4 x2 x4 2
x1 4 x3 x4 1
x2 x3 4 x4 1
Department of Computer Science
Solution
The given system of equations can be rewritten as
x (1)
2 0.5 (0.25)(0.5) 0 0.625
x 0.25 (0.25)(0.625)
(1)
4
(0.25)(0.375) 0.5
Iteration x1 x2 x3 x4
number r
1 0.5 0.625 0.375 0.5