mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
localized sympy
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
from .__init__ import *
|
from .__init__ import *
|
||||||
|
import sympy
|
||||||
|
|
||||||
def matrixInversion(SquareMatrixDimension=3, MaxMatrixElement=99, OnlyIntegerElementsInInvertedMatrix=False):
|
def matrixInversion(SquareMatrixDimension=3, MaxMatrixElement=99, OnlyIntegerElementsInInvertedMatrix=False):
|
||||||
if OnlyIntegerElementsInInvertedMatrix is True:
|
if OnlyIntegerElementsInInvertedMatrix is True:
|
||||||
@@ -65,4 +66,4 @@ def matrixInversion(SquareMatrixDimension=3, MaxMatrixElement=99, OnlyIntegerEle
|
|||||||
Mat = sympy.Matrix(Mat)
|
Mat = sympy.Matrix(Mat)
|
||||||
problem = 'Inverse of Matrix ' + str(Mat) + ' is:'
|
problem = 'Inverse of Matrix ' + str(Mat) + ' is:'
|
||||||
solution = str(sympy.Matrix.inv(Mat))
|
solution = str(sympy.Matrix.inv(Mat))
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import random
|
import random
|
||||||
import math
|
import math
|
||||||
import fractions
|
import fractions
|
||||||
import sympy
|
|
||||||
from .funcs import *
|
from .funcs import *
|
||||||
|
|
||||||
genList = []
|
genList = []
|
||||||
|
|||||||
Reference in New Issue
Block a user