Update definiteIntegralFunc.py

fixed presentation errors
This commit is contained in:
helplessThor
2020-10-20 12:24:17 +05:30
committed by GitHub
parent 8f6fb56c15
commit 2f6c9b0eb7

View File

@@ -13,11 +13,11 @@ def definiteIntegralFunc(max_coeff=100):
c = random.randint(0, max_coeff)
I = quad(integrand, 0, 1, args=(a, b, c))[0]
I = round(I, 4)
S = round(I, 4)
problem = "The definite integral within limits 0 to 1 of the equation " + str(a) + "x^2 + "+ str(b) +"x + " + str(c) + " is = "
solution = str(I)
solution = str(S)
return problem, solution