<a href="https://colab.research.google.com/github/anjanpa/LINEAR-ALGEBRA/blob/master/Row_reduce_.ipynb" target="_parent"></a>

## ROW REDUCTION USING PYTHON 


```
## GETTING OUR TOOLS READY

#importing python's package called sympy as sym
import sympy as sym
```


```
## Creating a matrix using sympy and matrix is named A
## sym.Matrix() is the syntax

#1.First you write syntax as A=sym.Matrix()
#2.And inside brackets you write 2-D matrix as A=sym.Matrix([[],[],[],[]])
#3.And in every large brackets put values of each row as I have written below.




## Creating the matrix from given question
A=sym.Matrix([[0,-3,-6,4,9],
              [-1,-2,-1,3,1],
              [-2,-3,0,3,-1],
              [1,4,5,-9,-7]])
```


```
## finding the row reduced matrix

## Here the syntax A.rref(pivots=False) contains 
#first element A as our matrix and rref is attribute for finding 
#row reduced form and yeah don't worry about pivots=False
#I did it to make the answer seem more clear.You could try using pivots=True


A.rref(pivots=False)
```




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




```

```

a7015ab43d4be42c268679dbe5ddde64b3c8d443
ipynb
Jupyter Notebook
Row_reduce_.ipynb
anjanpa/LINEAR-ALGEBRA
9add763b829edc5d05f50e2c1dd5e7cd1738a16d
Apache-2.0
Row_reduce_.ipynb
anjanpa/LINEAR-ALGEBRA
9add763b829edc5d05f50e2c1dd5e7cd1738a16d
Apache-2.0
Row_reduce_.ipynb
anjanpa/LINEAR-ALGEBRA
9add763b829edc5d05f50e2c1dd5e7cd1738a16d
Apache-2.0
Qwen/Qwen-72B
1. YES
2. YES