Integration can be regarded as taking the area under a curve. When a curve is a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Integration can be regarded as taking the area under a curve. When a "curve" is a straight line, such as in Figure 1, this is simple geometry. When the curve actually curves, however, geometry can still be used but it gets a bit more complicated. One way to do it is using the midpoint rule, as shown in Figure 2. Essentially, one creates a number of rectangles of equal width, between the limits of integration. Then you take the sum of the areas of them. The thinner the rectangles (or equivalently, the more elements in the summation), the more accurate the estimate of the proper integral. Lower limit Upper limit Figure 1 Lower limit Upper limit Figure 2 For Question 1, create a Matlab program that takes the integral of f(x) (a/x) sin x+b between x =2 and x=8 (angles are in radians) where a and b are integer values between 1 and 10, input by the user. You can assume the inputs are integers but check to make sure they are both between 1 and 10, and output a clear and meaningful message to the screen if they are not. Integration can be regarded as taking the area under a curve. When a "curve" is a straight line, such as in Figure 1, this is simple geometry. When the curve actually curves, however, geometry can still be used but it gets a bit more complicated. One way to do it is using the midpoint rule, as shown in Figure 2. Essentially, one creates a number of rectangles of equal width, between the limits of integration. Then you take the sum of the areas of them. The thinner the rectangles (or equivalently, the more elements in the summation), the more accurate the estimate of the proper integral. Lower limit Upper limit Figure 1 Lower limit Upper limit Figure 2 For Question 1, create a Matlab program that takes the integral of f(x) (a/x) sin x+b between x =2 and x=8 (angles are in radians) where a and b are integer values between 1 and 10, input by the user. You can assume the inputs are integers but check to make sure they are both between 1 and 10, and output a clear and meaningful message to the screen if they are not.
Expert Answer:
Related Book For
Principles Of Environmental Economics And Sustainability
ISBN: 9780815363545
4th Edition
Authors: Ahmed Hussen
Posted Date:
Students also viewed these programming questions
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
ENSURE WORK IS ORIGINAL OR I REJECT AND REPORT YOU TON THE SUPPORT INSTANTLYThe end result does now not should be taken care of. You may additionally expect n 6 length(xs). [Hint: Function least is a...
-
When developing cost functions, which of the following statements is FALSE? A. Personal observations of costs and activities provide the best evidence of a plausible relationship between a cost and...
-
What method does the auditor use to determine whether sufficient appropriate audit evidence has been collected?
-
Besides the name and address of the payer, what other information should be listed in the address box of the payer on the recipients copy of Form 1099-MISC?
-
Problem 8 is the same as problem 7 with respect to initial measurement of the ARO liability. Now assume that Tadpoles credit standing improves over time, causing the credit-adjusted risk-free rate to...
-
Comparative financial statements for Weaver Company follow: During 2009, the company sold some equipment for $20 that had cost $40 and on which there was accumulated depreciation of $16. In addition,...
-
what are the benefits of the relational model relationships and ERD ( entity-relationship model)?
-
Write a SELECT statement that returns four columns from the Vitals table: Height in. Weight. Jh. Jempand Pulse. Then, run this statement to make sure it works correctly. Add an ORDER BY clause to...
-
Compare and Contrast-Which do you prefer and why(buttress your point with a mathematical calculation) RRSP VS TFSA
-
Problem 5. Find the matrix B of the linear transformation T() with respect to the basis B = (1, 2). 1. A = = = 2 = 10 3 4 2. A = = 4 3 = Ax
-
Q5 Question 5 Corporate Governance: Directors' duties (10 marks) What is a fiduciary duty and what specific fiduciary duties does the law impose on company directors generally and under the...
-
Q5- Show that the following matrix is not diagonalizable. (5 marks) 11-1 A = 2 0 3-3 2 5
-
A taxable capital gain is calculated as: capital gain x capital gains inclusion rate. The current capital gains inclusion rate is 50%. Samantha realized a capital gain of $50,000 when she sold her...
-
Suppose the real exchange rate is 1 litre of Canadian gasoline per 2 litres of U.S. gasoline, 1 litre of U.S. gasoline costs $0.50 U.S., and a litre of Canadian gas costs $1.30 Canadian. What is the...
-
The value of a share of common stock depends on the cash flows it is expected to provide, and those flows consist of the dividends the investor receives each year while holding the stock and the...
-
Compare and contrast the following pairs of concepts: - Climate mitigation and climate adaptation policies. - Climate debt and climate reparations. - The transfer of emissions reduction units (ERUs)...
-
As you read in the textbook, economists tend to be critical of using emission standards as a policy instrument to control pollution on the grounds that it is not cost-effective. This argument is...
-
A. A simple regression model over the 1980-2003 period where the Y-variable is the Disney year-end stock price and the X-variable is Disneys earnings per share reads as follows (statistics in...
-
Reconsider Problem 18. Management has decided that the $5 million raised through stock should be split between common stock and preferred stock. Common stock will be used to raise $3,000,000 and...
-
Repeat Problem 23 assuming that the stock price is growing at 3 percent per year. Data from problem 23 Lahoma Enterprises, Inc., needs $15 million to finance a major product development. The project...
-
Repeat Problem 23 assuming the stock offering will be preferred stock rather than common stock. The preferred stock will sell for $120/share, pay a $9 annual dividend, and have a cost of selling of...
Study smarter with the SolutionInn App