Task

Invert matrix   A   using Gauss-Jordan method.

A   being an   n × n   matrix.




 
{require lib_matrix}
 
{M.gaussJordan
  {M.new [[1,2,3],
          [4,5,6],
          [7,8,-9]]}}
-> 
[[-1.722222222222222,0.7777777777777777,-0.05555555555555555],
 [1.4444444444444444,-0.5555555555555556,0.1111111111111111],
 [-0.05555555555555555,0.1111111111111111,-0.05555555555555555]]
 