[SciPy-user] Double integration

Lev Givon lev@columbia....
Tue Aug 14 07:40:30 CDT 2007

Received from Colin Gillespie on Tue, Aug 14, 2007 at 06:55:41AM EDT:
> Dear all,
> What would be the best way of solving this double integration using scipy:
> int_0^1 int_x^1 y dy dx
> Many thanks
> Colin

Try this:

from scipy.integrate import dblquad
dblquad(lambda y,x:y,0.0,1.0,lambda x:x,lambda x:1.0)


More information about the SciPy-user mailing list