Professional Documents
Culture Documents
PRIYANSHU
PRIYANSHU
MATHEMATICS - 1
(BAS-103)
FINDING INDEFINITE
INTEGRAL OF A GIVEN
POLYNOMIAL USING
PYTHON
# Python3 program to find the indefinite
# integral of the given polynomial
MOD = 1000000007
powStr = "";
power = int(powStr)
a = ""
b = "";
return S;
S = "";
if (pTerm == "-"):
S += " - ";
continue;
# Otherwise find
# the integration of
# that particular term
else:
S += inteTerm(pTerm);
return S;
# Driver code
str1 = "5x^3 + 7x^1 + 2x^2 + 1x^0";
print(integrationVal(str1) + " + C ");