MTH 343 · 7.3 Jacobi and Gauss–Seidel methods
Enter a linear system Ax = b and a starting vector x(0), then step through the Jacobi and Gauss–Seidel methods one iteration at a time.
Type 0.001, 1e-5 or 10^-5.
Enter a positive number for TOL, for example 0.001 or 1e-5.
Stop at the first k where the approximate relative error is below TOL, as in Examples 1 and 3 of the textbook (l∞ norm, at most 1000 iterations).