# Linear Algebra Lkhagva

## 1934 days ago by mathmodel2017

A=matrix(4, 4, [1, -4, 2, 8, 0, 1, -5, 7, 0, 0, 1, 3, 0, 0, 0, 1]) B=matrix(3, 4, [6, 1, 8, -1, 7, 2, 7, 4, 0, 1, 0, -3]) print A.rref() print B.rref()
 [1 0 0 0] [0 1 0 0] [0 0 1 0] [0 0 0 1] [ 1 0 0 33/7] [ 0 1 0 -3] [ 0 0 1 -23/7] [1 0 0 0] [0 1 0 0] [0 0 1 0] [0 0 0 1] [ 1 0 0 33/7] [ 0 1 0 -3] [ 0 0 1 -23/7]
html(' $A=%s$ and $B=%s$' %(latex(A),latex(B)) )
  $A=\left(\begin{array}{rrrr} 1 & -4 & 2 & 8 \\ 0 & 1 & -5 & 7 \\ 0 & 0 & 1 & 3 \\ 0 & 0 & 0 & 1 \end{array}\right)$ and $B=\left(\begin{array}{rrrr} 6 & 1 & 8 & -1 \\ 7 & 2 & 7 & 4 \\ 0 & 1 & 0 & -3 \end{array}\right)$  and
html(' $A^{-1}=%s$ ' %(latex(A^(-1))) )
  $A^{-1}=\left(\begin{array}{rrrr} 1 & 4 & 18 & -90 \\ 0 & 1 & 5 & -22 \\ 0 & 0 & 1 & -3 \\ 0 & 0 & 0 & 1 \end{array}\right)$