Example
1. Use successive over relaxation - SOR
iteration to solve the linear system
.
1 (a). Use 10
iterations. Compare the speed of convergence with Jacobi
and Gauss-Seidel iteration.
Solution 1 (a).
The matrix A can be constructed with the command.
The column vector B can be constructed with the command.
Use 10 iterations of Jacobi iteration.
]
![]()
![]()
Use 10 iterations of Gauss-Seidel iteration.
Use 10 iterations of the SOR method with the
parameter
.
We can compare the approximations with the "true solution."
(c) John H. Mathews 2004