Double integration with inner integration contains variables

I am trying to do the numerical integration with two integrals. the limits of the inner integration contains the variables that will be integrated out in the next integration. For example, I am integrating the following
int^{inf}_{0}(int^{y+1}_{y-1}(x)dx)dy
How can I enter this in MATLAB
Thanks in advance!

回答(1 个)

syms x y
firstint=int(x,x,y-1,y+1);
answer=int(firstint,y,0,Inf)
Best wishes
Torsten.

类别

提问:

2015-4-28

回答:

2015-4-28

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by