Question: Solve in Matlab. The methods that we used for approximating single integrals all have counterparts for double integrals. The Midpoint Rule for double integrals is

Solve in Matlab.
The methods that we used for approximating single integrals all have counterparts for double integrals. The "Midpoint Rule" for double integrals is given in the following equation.
Rf(x,y)dA~~i=1mj=1nf(xi,bar(y)j)xy
where ?bar(xi) is the midpoint of xi-1,xi and ?bar(yj) is the midpoint of yj-1,yj
1||| Page
For example, eq.(1) can be applied to estimate the volume of the solid (see Fig. 1) that lies above the square R=[0,2]x[0,2](see Fig. 2) and below the elliptic paraboloid f(x,y)=16-x-2y2.
Write a local function that will return the final value of the double integral given in (1). Start with the function definition shown below. The function will receive 6 input arguments:
the original function f(x,y),
the lower bound of the double integral in the x-direction (a),
the upper bound of the double integral in the x-direction (b),
the lower bound of the double integral in the y-direction (c),
the upper bound of the double integral in the y-direction (d),
number of sub-intervals (n).
We assume that the number of sub-intervals are the same in both x and y direction.
 Solve in Matlab. The methods that we used for approximating single

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!