GaussSeideli
Gauss-Seidel is an iterative method for solving linear systems of the form Ax = b. It improves on the Jacobi method by using updated component values as soon as they become available within each iteration, which often leads to faster convergence.
In each iteration, the components of the solution vector x are updated sequentially. For a system with
x_i^(k+1) = (b_i − sum_{j=1}^{i−1} a_{ij} x_j^(k+1) − sum_{j=i+1}^n a_{ij} x_j^(k)) / a_{ii},
assuming a_{ii} ≠ 0. Equivalently, with A = L + U where L is the lower triangular part including
Convergence of Gauss-Seidel depends on the properties of A. It is guaranteed to converge for matrices that
Gauss-Seidel is related to Jacobi as a stationary iterative method and is a special case of successive