Example
6. Use Jacobi and Gauss-Seidel iteration
to solve the linear system
.
Use a tolerance of
and
a maximum of 50 iterations.
Solution 6.
Enter the matrix A, vector B and starting vector P.
How many iterations did Jacobi iteration use ?
How many iterations did Gauss-Seidel iteration use ?
(c) John H. Mathews 2004