Example of Single Integration in SCIPY:-
import scipy.integrate
from numpy import exp
f= lambda x:x*x
i = scipy.integrate.quad(f, 0, 1)
print(i)
Example of double integration ion SCIPY:-
import scipy.integrate
from numpy import exp
from math import sqrt
f = lambda x, y : 16*x*y
g = lambda x : 0
h = lambda y : sqrt(1-4*y**2)
i = scipy.integrate.dblquad(f, 0, 0.5, g, h)
print(i)
Fixed Quad Integration:-
scipy.nquad:-
from scipy.integrate import nquad
def f(x, y, z):
return x*y*z
I = nquad(f, [[0, 1], [0, 5], [0, 5]])
print(I)
POST Answer of Questions and ASK to Doubt