Write computer code finding integrals numerically by following methods. For all methods, obtain a table which...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write computer code finding integrals numerically by following methods. For all methods, obtain a table which contains number of data N, integration result for current N number, and error between current integration result and exact analytical solution. Use N = 5, 10,50, 100, 1000 values for a) and b) sections. Use N 5,9, 49,99, 999 values for c) section where N indicates number of sample points which taken from the function. a) Directly use function values for each interval, S f(x)dx = Ef(x)Axi b) Trapezodial rule. c) Simpson's 1/3 rule. fi(x) = 4x3 + 5x² + x - 2; x e [1,5] x2 2x3 + 3 * E [2, 20] f3(x) = 2x2e-*; x € [0,4] f2(x) = Write computer code finding integrals numerically by following methods. For all methods, obtain a table which contains number of data N, integration result for current N number, and error between current integration result and exact analytical solution. Use N = 5, 10,50, 100, 1000 values for a) and b) sections. Use N 5,9, 49,99, 999 values for c) section where N indicates number of sample points which taken from the function. a) Directly use function values for each interval, S f(x)dx = Ef(x)Axi b) Trapezodial rule. c) Simpson's 1/3 rule. fi(x) = 4x3 + 5x² + x - 2; x e [1,5] x2 2x3 + 3 * E [2, 20] f3(x) = 2x2e-*; x € [0,4] f2(x) =
Expert Answer:
Answer rating: 100% (QA)
1 For function f1 4x3 5x2 x2 Method 1 Direct value Method RESULT Method 2 Trap... View the full answer
Related Book For
Concepts of Database Management
ISBN: 978-111182591
7th edition
Authors: Philip J. Pratt, Joseph J. Adamski
Posted Date:
Students also viewed these programming questions
-
A total of 100 sample points were taken from two populations with variances 12 = 4 and 22 = 9. Find n1 and n2 that will result in the maximum amount of information about (1 2).
-
Activity Optimistic Time Estimate (weeks) Most Likely Time Estimates (weeks) Pessimistic Time Estimates (weeks) Immediate Predecessor(s) A 3 5 10 none B 3 5 9 A C 5 7 13 A D 4 5 12 B E 5 11 16 C F 3...
-
Q1. Suppose player A and player B are playing the following game. Player A can choose "Up" and "Down", while player B can choose "Left" and "Right". The payoff matrix is depicted below. Player A's...
-
Question 1 of 5 Which statement best illustrates Crusoe's reasons for teaching Friday about his religion? OA. He does not see Friday as a savage but as a soul worthy of saving. B. He thinks Friday...
-
The parent entity, JEZ, has purchased on the open market, for an amount less than par value, some bonds previously issued at par, by its wholly owned subsidiary, Northco. The group accountant for...
-
In Lee Wen Company, materials are entered at the beginning of each process. Work in process inventories, with the percentage of work done on conversion costs, and production data for its sterilizing...
-
Use the information for Leyh Management Co. in Problem P13-53. a. Allocate the support department costs to the revenue-generating departments using the step method. b. Which department is apparently...
-
Picasso Company is a wholesale distributor of professional equipment and supplies. The companys sales have averaged about $900,000 annually for the 3-year period 20122014. The firms total assets at...
-
Under accrual accounting when are liabilities to a supplier recognized by the business
-
There are n chocolates and the weight of the chocolates is given as an array of integers weights/n, where weights] denote the weight of the chocolate. Every day, one can pick one chocolate, eat half...
-
How would you collect and analyse data and feedback on the effectiveness of your financial management processes and make recommendations for improvements?
-
Suppose your only deductible expenses in the past year were $5200 in mortgage interest and $1500 in charitable contributions. If you are entitled to a standard deduction of $12,550, then your...
-
What is the present value of the following annuity? $2,942 every half year at the end of the period for the next 6 years, discounted back to the present at 4.15 percent per year, compounded...
-
These are all cases where someone synthesizes brings material from two or more sources in order to new information or to support a new . When you do research, you need to go beyond what your sources...
-
jerrys gifts has a new project with an initial cost of 340,000 that is expected to generate cash flows of 39k for 6 years and cash flows of 50k for the following 4 years if the required return is 8%...
-
What is the accumulated sum of the following stream of payments? $18,143 every year at the beginning of the year for 7 years, at 3.84 percent, compounded annually. what are all the excel formulas i...
-
How do you make sure that null hypothesis is accurate when confidence intervals are not always reported because they are so large?
-
The trade-off theory relies on the threat of financial distress. But why should a public corporation ever have to land in financial distress? According to the theory, the firm should operate at the...
-
1. Design a database to produce the following reports. Do not use any surrogate keys in your design. a. For each marina, list the marina number, name, address, city, state, and zip code. b. For each...
-
How is it possible to get more information from the same amount of data by using a database approach as opposed to a nondatabase approach?
-
A database at a college is required to support the following requirements. Complete the information-level design for this set of requirements. Use your own experience to determine any constraints you...
-
Explain the general format and give examples of the data that would appear on (a) a sales order, (b) a bill of materials, and (c) a job order cost sheet.
-
Why can we say that the sale of a manufactured product is recorded at two different amounts?
-
Lyle Manufacturing Company applies manufacturing overhead at the rate of 150% of direct labor cost. During October 2019, Lyle incurred \($82,000\) of direct labor costs and \($120,000\) of...
Study smarter with the SolutionInn App