Professional Documents
Culture Documents
Prctica 02
1
4. Solve the equation Ax = b, where
1 0 0 0 2 1 0 0
0 1 0 0 0 1 2 0
A=
1 3 1 0 0 0 1 1
4 1 2 1 0 0 0 1
y
1
1
b=
2
0
5. Compute the first two steps of the Jacobi and the Gauss-Seidel Methods with starting
vector [0, . . . , 0].
( )( ) ( )
3 1 u 5
a) =
1 2 v 4
2 1 0 u 0
b) 1 2 1 v = 2
0 1 2 w 0
3 1 1 u 6
c) 1 3 1 v = 3
1 1 3 w 5
6. Rearrange the equations to form a strictly diagonally dominant system. Apply two
steps of the Jacobi and Gauss-Seidel Methods from starting vector [0, 0, . . . , 0].
{
u + 3v = 1
a)
5u + 4v = 6
u 8v 2w =1
b) u + v + 5w =4
3u v + w = 2
u + 4v=5
c) u + 2w = 2
4u + 3w = 0