```python
# Mtarix Reductions
# elementary_row_op (기본행 연산)
# elementary_col_op
import sympy as sm
T = sm.Matrix([[1,2,3],[4,5,6],[7,8,9]])
T
```




$\displaystyle \left[\begin{matrix}1 & 2 & 3\\4 & 5 & 6\\7 & 8 & 9\end{matrix}\right]$




```python
T1 = T.elementary_row_op(op="n->n+km",row=1,row2=0,k=-4)
T1
```




$\displaystyle \left[\begin{matrix}1 & 2 & 3\\0 & -3 & -6\\7 & 8 & 9\end{matrix}\right]$




```python
T2 = T1.elementary_row_op(op="n->n+km",row=2,row2=0,k=-7)
T2
```




$\displaystyle \left[\begin{matrix}1 & 2 & 3\\0 & -3 & -6\\0 & -6 & -12\end{matrix}\right]$




```python
T3 = T2.elementary_row_op(op='n->n+km',row=2,row2=1,k=-2)
T3
```




$\displaystyle \left[\begin{matrix}1 & 2 & 3\\0 & -3 & -6\\0 & 0 & 0\end{matrix}\right]$




```python
T.echelon_form()
```




$\displaystyle \left[\begin{matrix}1 & 2 & 3\\0 & -3 & -6\\0 & 0 & 0\end{matrix}\right]$




```python
T4 = T3.elementary_row_op(op='n->kn',row=1,k=-1/3)
```


```python
T4.elementary_row_op(op='n->n+km',row=0,row2=1,k=-2)
```




$\displaystyle \left[\begin{matrix}1 & 0 & -1.0\\0 & 1.0 & 2.0\\0 & 0 & 0\end{matrix}\right]$




```python
T.rref()
```




    (Matrix([
     [1, 0, -1],
     [0, 1,  2],
     [0, 0,  0]]),
     (0, 1))




```python

```

e91f5e4b84655ad7c428705e48a44f3a059f7c72
ipynb
Jupyter Notebook
python/Matrices/echelon-form.ipynb
karng87/nasm_game
a97fdb09459efffc561d2122058c348c93f1dc87
MIT
python/Matrices/echelon-form.ipynb
karng87/nasm_game
a97fdb09459efffc561d2122058c348c93f1dc87
MIT
python/Matrices/echelon-form.ipynb
karng87/nasm_game
a97fdb09459efffc561d2122058c348c93f1dc87
MIT
Qwen/Qwen-72B
1. YES
2. YES