![]() ![]() #LnormInf corresponds to the absolute value of the greatest element of the vector. ![]() Print ("The solution vector in iteration", iter1, "is:", x) systems method equations gauss-seidel iterative. def gauss_seidel(A, b, tolerance, max_iterations, x): Implemention of the Gauss-Seidel Iterative Method for solving systems of equations. We will in this section seek to illustrate how classical iterative methods for linear algebraic systems of equations, such as Jacobi, Gauss-Seidel or SOR. ![]() Instead I created my own little function that with the help of a permutation matrix as seen in another answer of mine permutation matrix will produce the solution (x vector) for any square matrix, including those with zeros on the diagonal. I know this is old but, I haven't found any pre existing library in python for gauss - seidel. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |