




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Numerical Linear Algebra, Geometrical Interpretation, Forward elimination, Back substitution, Gaussian elimination, LU factorisation, LDU factorisation, Gauss-Seidel Method, Jacobi Method
Typology: Study notes
1 / 8
This page cannot be seen from the preview
Don't miss anything!





3
2
1 x
x
x
Subtract -3/10 times equation 1 from equation 2, and 5/10 timesequation 1 from equation 3.
3
2
1 x
x
x
Next we swap equations 2 and 3. This is calledto get the largest absolute value on or below the diagonal in column 2 onto partial pivoting. It is done the diagonal. This makes the algorithm more stable with respect to round-off errors (see later).
3
2
1 x
x
x
3
2
1 x
x
x
3
2
1 x
x
x
⎟ ⎠
⎞ ⎜⎜
⎜ ⎝ =⎛ ⎟⎟
⎟ ⎠
⎞ ⎜⎜
⎜ ⎝
⎛ ⎟⎟
⎟ ⎠
⎞ ⎜⎜
⎜ ⎝
⎛ −−
10 7 0 32
1 xx
x
2
1
computed solution
exact solution
n^ p i
=
1 / 2 1
=
n
n k ji ij jk
i ii ik j ij j
=+
−
1 (^1 )
2
1 (^21)
(^1) bb x
x x
x k k
i
n k ji ij jk
i ii ik j ij j
−
1 (^1 )
A = (^) ⎜⎜⎝⎛ −^21 − 21 ⎟⎟⎠⎞, S =⎜⎜⎝⎛ −^2120 ⎟⎟⎠⎞, T =⎜⎜⎝⎛ 0001 ⎟⎟⎠⎞, S −^1 T =⎜⎜⎝⎛ 0011 // 42 ⎟⎟⎠⎞
⎜⎜⎝⎛ −^2 120 ⎟⎟⎠⎞⎜⎜⎝⎛ xx 21 ⎟⎟⎠⎞ k + 1 =⎜⎜⎝⎛ 00 01 ⎟⎟⎠⎞⎜⎜⎝⎛ xx 21 ⎟⎟⎠⎞ k^ +⎜⎜⎝⎛ bb 21 ⎟⎟⎠⎞
choose an initial guess xfor k=0,1,2,…. 0 for i=1 to nsum = 0. for j=1 to i-1sum = sum + A(i,j)x end k+1(j) for j=i+1 to nsum = sum + A(i,j)x end k(j) endx^ k+1^ (i) = (b(i)–sum)/A(i,i) endcheck convergence and continue if needed