This repository contains Python implementations of various numerical analysis methods. These methods are commonly used for solving mathematical problems and finding approximate solutions to equations ...
""" Solve Ax=B with the Gauss-Seidel method """import numpy as npdef gauss(A, B, n, tol=1e-10): L = np.tril(A) # Returns the lower triangular matrix of A U = A - L # Decompose A = L + U L_inv = ...