localized sympy

This commit is contained in:
lukew3
2020-10-19 09:49:32 -04:00
parent 1e5fcf2b10
commit b3a80ee8ce
3 changed files with 3 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
from .__init__ import *
import sympy
def matrixInversion(SquareMatrixDimension=3, MaxMatrixElement=99, OnlyIntegerElementsInInvertedMatrix=False):
if OnlyIntegerElementsInInvertedMatrix is True:
@@ -65,4 +66,4 @@ def matrixInversion(SquareMatrixDimension=3, MaxMatrixElement=99, OnlyIntegerEle
Mat = sympy.Matrix(Mat)
problem = 'Inverse of Matrix ' + str(Mat) + ' is:'
solution = str(sympy.Matrix.inv(Mat))
return problem, solution
return problem, solution