diff --git a/mathgenerator/mathgen.py b/mathgenerator/mathgen.py index 64f6668..df78ded 100644 --- a/mathgenerator/mathgen.py +++ b/mathgenerator/mathgen.py @@ -699,7 +699,7 @@ def powerRuleIntegrationFunc(maxCoef = 10, maxExp = 10, maxTerms = 5): coefficient = random.randint(1, maxCoef) exponent = random.randint(1, maxExp) problem += str(coefficient) + "x^" + str(exponent) - solution += "("+str(coefficient) +"/"+str(exponent) +")x^" + str(exponent +1) + solution += "("+str(coefficient) +"/"+str(exponent + 1) +")x^" + str(exponent +1) solution = solution + " + c" return problem, solution @@ -837,8 +837,8 @@ vectorCross = Generator("Cross Product of 2 Vectors", 43, "a X b = ", "c", vecto compareFractions=Generator("Compare Fractions",44,"Which symbol represents the comparison between a/b and c/d?",">/