Write a mat lab function whose name is yourlastname.client2.m to compute the dou
ID: 3580326 • Letter: W
Question
Explanation / Answer
function vol = dint2(f,s,t,r)
% calculating xmin and xmax
xmin = s(1);
xmax = s(1);
if xmin > t(1)
xmin = t(1);
end
if xmax < t(1)
xmax = t(1);
end
if xmin > r(1)
xmin = r(1);
end
if xmax < r(1)
xmax = r(1);
end
% calculating ymin and ymax
ymin = s(2);
ymax = s(2);
if ymin > t(2)
ymin = t(2);
end
if ymax < t(2)
ymax = t(2);
end
if ymin > r(2)
ymin = r(2);
end
if ymax < r(2)
ymax = r(2);
end
vol = integral2(f,xmin,xmax,ymin,ymax);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.