Previous Up Next

14.7.7  Solving a linear system using the Jacobi method

The jacobi_linsolve command finds the solution of a linear system of equations using the Jacobi iterative method.

Examples

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

−0.000200080032,0.0100040016006
          
evalf(linsolve(A,[0,1]))
     

−0.000200080032013,0.0100040016006
          

Previous Up Next