# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

from sympy import Matrix

A = Matrix([[0,2,0,1],[2,2,3,2],[4,-3,0,1],[6,1,-6,-5]])

A

B=Matrix([[0,-2,-7,6]])

B = B.transpose()

B

A.gauss_jordan_solve(B)

# <b>x1=-0.05 , x2=1.0,  x3=0.33, x4=-2.0</b> 

StarcoderdataJupyterScriptsDedupFiltered