elementary matrices

1908 days ago by matrix

A=matrix(4,4,[4,0,1,1,2,4,1,6,2,4,2,4,2,-4,-1,0]) print A.inverse() 
       
[   1/2    1/4   -1/2   -1/4]
[  5/12    3/8   -2/3 -13/24]
[  -2/3     -1    5/3    2/3]
[  -1/3      0    1/3    1/3]
[   1/2    1/4   -1/2   -1/4]
[  5/12    3/8   -2/3 -13/24]
[  -2/3     -1    5/3    2/3]
[  -1/3      0    1/3    1/3]