Double integration with inner integration contains variables
Show older comments
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
on 28 Apr 2015
syms x y
firstint=int(x,x,y-1,y+1);
answer=int(firstint,y,0,Inf)
Best wishes
Torsten.
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!