Double integration with inner integration contains variables

3 views (last 30 days)
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!

Answers (1)

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

Community Treasure Hunt

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

Start Hunting!