By using the updated x immediately, Gauss-Seidel typically
converges faster than Jacobi iteration.
Example
Use each updated value immediately in the same iteration.
highlighted = computed this step
Step 1 — Set up
Set up the Gauss-Seidel system.
4x+y=9x+4y=6
Step 2 — Iteration 1
Gauss-Seidel iteration 1: use the updated x immediately.
k01x049y01615
Step 3 — Iteration 2
Gauss-Seidel iteration 2: use the updated x immediately.
k012x04964129y01615256255
Step 4 — Result
Compare the last Gauss-Seidel iterate with the true solution.
k012x04964129y01615256255x→2, y→1
gauss-seidel
The Gauss-Seidel method uses newly computed values immediately: x_{k+1} = (b1 - a12·y_k) / a11 y_{k+1} = (b2 - a21·x_{k+1}) / a22