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

View File

@@ -1,7 +1,6 @@
import random
import math
import fractions
import sympy
from .funcs import *
genList = []

View File

@@ -3,3 +3,4 @@ from mathgenerator import mathgen
#test your generators here
print(mathgen.addition())
print(mathgen.genById(74))