Double integral, inner function has variable limit (very particular case)
조회 수: 15 (최근 30일)
이전 댓글 표시
I need to calculate a double integral where the inner function depends on both x and y (I integrate it on y and one of the limit depends on x), then I integrate the remaining on x. This is an example of code:
f1=@(x,y) x.^2+y; %inner function to be integrated on y
f2=@(x) sqrt(x).*integral(@(y)f1(x,y),x,3); %second function, to be integrated on x
V = integral(@(x)f2(x),0,2) %final calculation
PS: I don't want to use symbolic functions
PPS: I know that this case could be solved by simple calculation on papar, but it's only a trivial case, what I need to do is way more complex
Thanks
댓글 수: 0
답변 (1개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!