You are on page 1of 1

School of Chemical Engineering

Winter Semester – 2020 / 21


CHE3001 – COMPUTATIONAL METHODS IN PROCESS ENGINEERING

Experiment 5

5. Develop a generic MatLab program to solve a given system of linear equations based on
the Gauss – Seidel method of solution.

Inputs:
i) Number of unknowns
ii) System of equations in the matrix form
iii) Iteration limit
iv) Error Tolerance

Check for the diagonal dominance criteria and other important checks (if any).

Print the iteration details and the final solution set for the given system of equations as
the output.

Solve the following equation set as a part of your validation for the developed code

4x – y – z = 3;
–2x + 6y + 1 = 9;
–x + y + 7z = –6

with an iteration limit ‘50’ and error tolerance of 10-6

Submit the lab report before the next lab session (27 March 2021) in the prescribed format.

Faculty: Dr. Rima Biswas

You might also like