Double Integral unkown limits
显示 更早的评论
Hi
In this problem a=0.5 b=0.1 funa*x.^2 + b*y.^2 0<x<5 0<y<2xk and q=125. I try fo find that What is the value of the k? now I don't know a value but I know q. How can I estimate a value and use random command for a value.
a =0.5;
b = 0.1;
fun = @(x,y) a*x.^2 + b*y.^2;
%0<x<5 0<y<2xk
ymax=2*x*k
q = integral2(fun,0,5,0,ymax)==125 % real value 125
What is the value of the k???
4 个评论
erhan aksu
2019-2-10
Star Strider
2019-2-10
The problem is that by definition the double integration completely evaluates ‘x’ in the first integration, so it cannot be considered in the second integration, since ‘x’ is integrated between 0 and 5, not between 0 and a function of ‘y’. The only possible solution for your problem that I see is to reverse the order of integration, evaluating ‘y’ first, then ’x’, or re-defining your problem. However, that may not be appropriate.
Walter Roberson
2019-2-10
Instead of passing ymax to integral2, pass @(x) ymax(x,k)
Meanwhile, the @(x,y,k)fun(x,y) should just be fun as no third parameter is going to be passed by integral2 and fun does not need k.
erhan aksu
2019-2-11
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Eigenvalue Problems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!