lint fixes

This commit is contained in:
lukew3
2020-12-17 19:05:38 -05:00
parent c0d2a2755c
commit 5baaa11ad6
2 changed files with 11 additions and 11 deletions

View File

@@ -15,18 +15,18 @@ def multiplyIntToMatrix22(maxMatrixVal=10, maxRes=100, style='raw'):
d1 = d * constant d1 = d * constant
if style == 'latex': if style == 'latex':
problem = ("\\(" + str(constant) + "\\cdot" + problem = ("\\(" + str(constant) + "\\cdot"
"\\begin{bmatrix}" + "\\begin{bmatrix}"
str(a) + "&" + str(b) + "\\\\" + "" + str(a) + "&" + str(b) + "\\\\"
str(c) + "&" + str(d) + "" + str(c) + "&" + str(d) + ""
"\end{bmatrix}=" + "\end{bmatrix}="
"\\)" "\\)"
) )
solution = ("\\(" + solution = ("\\("
"\\begin{bmatrix}" + "\\begin{bmatrix}"
str(a1) + "&" + str(b1) + "\\\\" + "" + str(a1) + "&" + str(b1) + "\\\\"
str(c1) + "&" + str(d1) + "" + str(c1) + "&" + str(d1) + ""
"\end{bmatrix}" + "\end{bmatrix}"
"\\)" "\\)"
) )
else: else:

View File

@@ -1,3 +1,3 @@
from mathgenerator import mathgen from mathgenerator import mathgen
print(mathgen.genById(17, style='latex')) print(mathgen.genById(17, style='latex')[0])