```python
import numpy as np
from scipy.linalg import lu
from sympy import Matrix
```

Solves Ax=B

We are trying to solve the linear system

 2x1 + 5x2 = 2</br>
-4x1 + 3x2 = -30


```python
A = Matrix([[2,5],[-4,3]])
```


```python
A
```




$\displaystyle \left[\begin{matrix}2 & 5\\-4 & 3\end{matrix}\right]$




```python
B= Matrix([[2,-30]])
```


```python
B = B.transpose()
```


```python
B
```




$\displaystyle \left[\begin{matrix}2\\-30\end{matrix}\right]$




```python
A.gauss_jordan_solve(B)
```




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



x1 = 6 and x2 = -2


```python

```

a2ab49324f54e3644d4c4c214a13575b27ff59c0
ipynb
Jupyter Notebook
gauss_elimination.ipynb
lgtejas/mfds
dc9569a970f963d298dbe56db58b090684558d7b
MIT
gauss_elimination.ipynb
lgtejas/mfds
dc9569a970f963d298dbe56db58b090684558d7b
MIT
gauss_elimination.ipynb
lgtejas/mfds
dc9569a970f963d298dbe56db58b090684558d7b
MIT
Qwen/Qwen-72B
1. YES
2. YES