Examples of simple iteration and Seidel methods
for solving linear systems of equations by using Mathematica code
By Snezhana Gocheva-Ilieva, snow@pu.acad.bg
Solution:
We introduce:
First we could reduce the system in the form, appropriate for iteration:
Then calculate of the first matrix norm of matrix C:
As the norm is lower than 1 we expect the convergence of the iteration process. The following code performs the simple iteration method procedure:
Verification by substituting the obtained x into the initial system of equations:
Conclusion: The accuracy of the obtained approximate solution by the method of simple iteration by applying 10 iterations is 0.001.
Answer: Approximate solution of example 1 with three decimal digits is
x={0.383, 0.055, 0.293}
Solution:
We apply the code
Verification by substituting the obtained x=v into the initial system of equations:
Conclusion: The accuracy of the obtained approximate solution by the Zeidel method after 10 iterations is 0.000000001.
Answer: Approximate solution of example 2 with six decimal digits is
x={0.382759, 0.0551724, 0.293103}.
Created by Mathematica (May 8, 2008)