![]() | 1 | initial version |
It may happen that integrate(integrate(f(x,y), x, a, b), y, c, d)
fails but that integrate(integrate(f(x, y),y, c, d), x, a, b)
succeeds.
IF your integrand f(x1,⋯,x11) complies with the preconditions of the Fubini-Tonelli theorem, then ∫f(x1,⋯,x11)dxi⋯dxj does not depend of the order of the integration variables order x1,⋯,xj.
You might try to search the ordered subsets xi,⋯,xj of your integration variables x1,⋯,x4 such as ∫f(x1,⋯,x11)dxi⋯dxj has an explicit and convenient form F(x1,⋯x11). There are 4∑i=0i!=34 such subsets.
Programatically using the results of such a "brute force" is made possible by the fact that a "non-integrated" result R will have R.operator()
being integrate
.
Similarly, you may try to loop over the various available integration algorithms.
Using this form, the numerical integration of F over the remaining integration variables is your solution.