From 6958cda6e9974d09bd30d35b71118d9efe590b1d Mon Sep 17 00:00:00 2001 From: lukew3 Date: Thu, 17 Dec 2020 19:08:56 -0500 Subject: [PATCH] more lint fixes --- .../funcs/algebra/multiply_int_to_22_matrix.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/mathgenerator/funcs/algebra/multiply_int_to_22_matrix.py b/mathgenerator/funcs/algebra/multiply_int_to_22_matrix.py index 5e4ba6b..dab2d94 100644 --- a/mathgenerator/funcs/algebra/multiply_int_to_22_matrix.py +++ b/mathgenerator/funcs/algebra/multiply_int_to_22_matrix.py @@ -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}]]"