Professional Documents
Culture Documents
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
Submit the lab report before the next lab session (27 March 2021) in the prescribed format.