Previous Up Next

15.7.8  Solving a linear system using the Gauss-Seidel method

The gauss_seidel_linsolve command finds the solution of a linear system of equations using the Gauss-Seidel method.

Examples

A:=[[100,2],[2,100]]:; gauss_seidel_linsolve(A,[0,1],1e-12);
     

−0.000200080032013,0.0100040016006
          
gauss_seidel_linsolve(1.5,A,[0,1],1e-12);
     

−0.000200080032218,0.0100040016006
          

Previous Up Next