This question may seem silly but I cannot find a way to solve it by myself. I need to do some multifold integrations (at least four fold) whose range is infinite with Matlab, and I did not found any suitable functions.
For example, how should I do the following integral:
Integrate[f(x,y,z,w),{x,-\infty,\infty},{y,-\infty,\infty},{z,-\infty,\infty},{w,-\infty,\infty}]
where the function f may be defined as
f=1/(x-y)*1/(z-w)exp(-0.25(x^2+y^2+z^2+w^2))
In Matlab, sometimes one needs to add a dot behind the arguments so the function can be executed, which I am very confused about.
I appreciate if anyone could help.
I assume you mean symbolic integration. For that
int
repeatedly to integrate with respect to each variable. This assumes the function satisfies the hypotheses of Fubini's theorem (which it does for your example function).So: