In [1]:
from _linearEq import LinearEquations
from sympy import Eq, symbols
# %matplotlib notebook
In [2]:
x, y, z = symbols('x y z')
eq1 = Eq(- y + 2*z, -6)
eq2 = Eq(3*x + 6*y -8*z, 1)
eq3 = Eq(-4*x + 5*y + 5*z, 1)
display(eq1, eq2, eq3)
In [3]:
le = LinearEquations(eq1, eq2, eq3, var = [x, y, z])
le.displayEqs()
In [4]:
le.solve()
Out[4]:
In [5]:
le.displayEqs()
In [6]:
le.plot(plotType = 'Basis')
In [7]:
le.plot()
In [8]:
le.plot('coln')
In [9]:
le.solution()
In [10]:
x, y, z = symbols('x y z')
eq1 = Eq(x - y, -6)
eq2 = Eq(3*x + 5*y, 12)
In [11]:
le = LinearEquations(eq1, eq2, var = [x, y])
le.displayEqs()
In [12]:
le.solve()
Out[12]:
In [13]:
le.plot(plotType = 'Basis')
In [14]:
le.plot()
In [15]:
le.plot('coln')
In [16]:
le.solution()
In [ ]:
In [ ]: