Assignment 2
Assignment 2
x -x - x
3 1 +9 2 + 3 = 2
2 1 2 7 3 = 3.
2. Apply 5 iterations of (a) the Jacobi method and (b) the Gauss-Seidel
iteration method to approximate the solution of the following system
of linear equations using the initial approximation
x x x ) = (0, 0, 0).
x -x
( , ,1 2 3
x-x x -
2 1 2 = 0
-x x - x -
1 3 2 + 3 = 2
1 + 2 3 3 = 6.
-
- - x
1 4 1
3. Consider the system of linear equations = . Apply three
4 1 0
x x
3 = 4
a. b.
1 2
x-x x
1 +2 3 = 4
2 1 +5 2 = 2,
3 1
5 2
+ 3
= 3.
x-x x
4 1 + 2 3 = 8
approximations as x =0.9, x - x
1 3 2 +7 3 = 17.
Interchange the first and second equations and solve the resulting
system by the Gauss-Seidel method. Again take the initial
approximations as =0.9, = 3.1, x x
= 0.9, and obtain the result - x
x
1 2 3
= 2
3.0, = 1.0. 3
- z
2 3 1 4
0 1 2 1