0% found this document useful (0 votes)
14 views3 pages

Exercice Set 7 PDF

This document is a student assignment that uses the Jacobi and Gauss-Seidel methods to solve a system of linear equations. It provides the initial values, iterative formulas, and results of applying each method with a tolerance of 10^-3 or less. The Jacobi method converged after 9 iterations, while Gauss-Seidel converged faster in 6 iterations.

Uploaded by

Karen Johnson
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

Exercice Set 7 PDF

This document is a student assignment that uses the Jacobi and Gauss-Seidel methods to solve a system of linear equations. It provides the initial values, iterative formulas, and results of applying each method with a tolerance of 10^-3 or less. The Jacobi method converged after 9 iterations, while Gauss-Seidel converged faster in 6 iterations.

Uploaded by

Karen Johnson
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Name: BAGARAGAZA Romuald

Student number: M2014028


Assignment 5
Numerical 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
=

= (

)/3;

= (

)/6;

= (

)/7;
1

xx= [

];

i=i+1
end
i
norm(xx,inf)

i=9
ans= 7.5076e-004
= 0.0351
= -0.2366
= 0.6581
4: Repeating Exercise 3 by the Gauss-seidel Algorithm.
Solution
= 0;
= 0;
= 0;
= (

)/3;

= (

)/6;

= (

)/7;

xx= [

];

i=1
While norm (xx,inf) 1
=

;
2

xx= [

];

i= i+1;
end
i
norm(xx,inf)

i=6
ans= 7.9814e-004
= 0.0354
= -0.2368
= 0.6578

You might also like