How do I do this?

2 vues (au cours des 30 derniers jours)
JIANGWEN DONG
JIANGWEN DONG le 9 Fév 2021
Commenté : the cyclist le 9 Fév 2021
Integrate function 𝑓(𝑢, 𝑣) = 𝑣 − √𝑢 over the triangular region cut from the first quadrant of the uv-plane by the line u + v = 1. Plot the region of interest.
  1 commentaire
jessupj
jessupj le 9 Fév 2021
you need to first identify whether you want to solve this numerically or symbolicallly

Connectez-vous pour commenter.

Réponse acceptée

the cyclist
the cyclist le 9 Fév 2021
This seems like a homework problem, so here is a hint instead of an answer: Your problem is extremely close to the first example in the documentation for the integral2 function.
(Assuming, as @jessupj asks, that you are OK with a numerical solution.)
  2 commentaires
JIANGWEN DONG
JIANGWEN DONG le 9 Fév 2021
hi, I have already done the code, but how do I plot it out in the first quadrant?
figure(2);
f = @(u,v) v-sqrt(u);
vmax = @(u) 1-u;
q = integral2(f,0,1,0,vmax);
the cyclist
the cyclist le 9 Fév 2021
You could use the mesh or surf functions to plot the 3-d surface.

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by