Python code for gauss seidel method

broken image
broken image

Then, the program asks for allowed error and maximum number of iteration to which the calculations are to be done.When the program is executed, first of all it asks for the value of elements of the augmented matrix row wise.The program for Gauss-Seidel method in C works by following the steps listed below: In this program, a certain approximate value of solution is assumed and further calculations are done based on the result of assumed approximate solution. This C program for Gauss-Seidel method has been designed for the solution of linear simultaneous algebraic equations based on the principle of iteration. But, the program in high level languages run fast and effectively. The manual computation iterative method is quite lengthy. Here is source code for Gauss-Seidel in C with working procedure and sample output. On the other hand, in case of iterative methods such as Gauss Jacobi and Gauss-Seidel iteration method, we start with an approximate solution of equation and iterate it till we don’t get the result of desired accuracy. So, direct method of solution takes longer time to get the solution.

broken image

for the solution of simultaneous algebraic equations yield the solution after a certain amount of fixed computation. The direct methods such as Cramer’s rule, matrix inversion method, Gauss Elimination method, etc.

broken image