Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

Appreciate important legal implications of performance appraisals

Answered: 1 week ago