We can see that using Gauss-Seidel iterative methods need only 13 timed to make
But using Jacobi method after 25 times the is bigger than that using Gauss-Seidel iterative methods
The following Matlab code converts a Matrix into it a diagonal and off-diagonal component and performs up to 100 iterations of the Jacobi method or until 蔚step < 1e-5