more lint fixes

This commit is contained in:
lukew3
2020-12-17 19:08:56 -05:00
parent 5baaa11ad6
commit 6958cda6e9

View File

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