Double Integral unkown limits
Afficher commentaires plus anciens
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 commentaires
erhan aksu
le 10 Fév 2019
Star Strider
le 10 Fév 2019
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
le 10 Fév 2019
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
le 11 Fév 2019
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!