Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE MATLAB! USE MATLAB! QUESTION 3: The methods that we used for approximating single integrals all have counterparts for double integrals. The Midpoint Rule for

USE MATLAB!

image text in transcribed

image text in transcribed

image text in transcribed

USE MATLAB!

QUESTION 3: 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. S5 f(x,y)dA=I $(4,7, hray (3) R i=1 ;=1 where x, is the midpoint of [X-1, xi] and y, is the midpoint of [yj-1, y;] For example, eq. (3) can be applied to estimate the volume of the solid (see Fig. 1) that lies above the square R = [0, 3] x [0, 3] (see Fig. 2) and below the elliptic paraboloid f(x,y)= 25 x-y? Y = midpoint of each square d=3 . 2 b=3 Fig. 1 Fig. 2 Write a function that will return the final value of the double integral given in (3). Start with the function definition shown below. The function will receive 6 input arguments: 1. the original function f(x,y), 2. the lower bound of the double integral in the x-direction (a), 3. the upper bound of the double integral in the x-direction (b), 4. the lower bound of the double integral in the y-direction (C), 5. the upper bound of the double integral in the y-direction (d), 6. number of sub-intervals (n). We assume that the number of sub-intervals are the same in both x and y direction. function (output] = intdouble (f, a,b,c,d,n) $ (OUTPUT] = INTDOUBLE (F,A,B,C,D,N) evaluates and returns the final value of % the double integral of any functions (E) end To evaluate the function, you can define a function for the elliptic paraboloid, as given below: function [z] = elliptic(x,y) z = 25-x^2-2*y^2; end Then in the Command Window: >> intdouble (@elliptic,0,3,0,3,3) ans = 146.2500

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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

How should a company select its projects?

Answered: 1 week ago

Question

Write Hund's rule?

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago