exercice set 7
DESCRIPTION
FDHTRANSCRIPT
Name: BAGARAGAZA RomualdStudent number: M2014028Assignment 5Numerical Analysis
P451, EXERCISE SET 3 AND 4 (e)
Exercice Set 7.3
3: Using Jacobi method to solve the linear systems in Exercise 1, with
TOL=10 ³ in the L∞ norm.ˉ
Solution
= 0;
= 0;
= 0;
= ( - +1)/3;
= (- - )/6;
= (- - +4)/7;
xx= [ - ];
i=1;
While norm (xx,inf)≥ 1
= ;
= ;
1
= ;
= ( )/3;
= ( )/6;
= ( )/7;
xx= [ - ];
i=i+1endinorm(xx,inf)
i=9ans= 7.5076e-004
= 0.0351
= -0.2366
= 0.6581
4: Repeating Exercise 3 by the Gauss-seidel
Algorithm.
Solution
= 0;
= 0;
1
= 0;
= ( )/3;
= ( )/6;
= ( )/7;
xx= [ - ];
i=1
While norm (xx,inf)≥ 1
= ;
= ;
= ;
xx= [ - ];
i= i+1;endinorm(xx,inf)
i=6ans= 7.9814e-004
= 0.0354
1
= -0.2368
= 0.6578
1