Integrating a multidimensional integral in scipy
Motivation: I have a multidimensional integral, which for completeness I have reproduced below. It comes from the computation of the second virial coefficient when there is significant anisotropy: Here W is a function of all the variables. It is a known function, one which I can define a python function for. Programming Question: How do I get scipy to integrate this expression? I was thinking of chaining two triple quads ( scipy.integrate.tplquad ) together, but I'm worried about performance and accuracy. Is there a higher dimensional integrator in scipy , one that can handle an arbitrary