

main2.py - constains larger user-input of size N, matrix a and vector b.main.py - contains basic usage demonstration of jacobi_calc() or gauss_seidel_calc(), using a 3x3 matrix, and basic arguments.


The algorithms will terminate when the change in x is less than tolerance, or if max_iter iterations have been exceeded.įor each function: (jacobi_calc() or gauss_seidel_calc()) Jacobi & Gauss-Seidel Algorithms Using Python The following methods solve the line system of equations, Ax=b,using Jacobi OR Gauss-Seidel algorithms, starting from an initial guess, x0.
