(1) Write a MATLAB script to find area using the Simpson's 3/8 rule. The code should...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
(1) Write a MATLAB script to find area using the Simpson's 3/8 rule. The code should perform all checks on the number of data points required for application of the rule assuming equally spaced data. Exit the code and issue appropriate warnings when a rule is violated. The formula of the Composite Simpson's 3/8 Rule is (2) (3) f(x)dx 22 3h 8 772 m 1 (x0) +3 (f(x32) + (xx1)) + 2 f(x3) + (x3m) You will have to change the index in the above formula to be compatibe with MATLAB. Use the code to find area of the following function between x = -1.2 and x = 0.6 using a step size of 0.2. f(x) = x + 3x+x+1 Execue the code when one or more rules related to the numbers of data points are violated. Submit livescript mlx and pdf. (1) Write a MATLAB script to find area using the Simpson's 3/8 rule. The code should perform all checks on the number of data points required for application of the rule assuming equally spaced data. Exit the code and issue appropriate warnings when a rule is violated. The formula of the Composite Simpson's 3/8 Rule is (2) (3) f(x)dx 22 3h 8 772 m 1 (x0) +3 (f(x32) + (xx1)) + 2 f(x3) + (x3m) You will have to change the index in the above formula to be compatibe with MATLAB. Use the code to find area of the following function between x = -1.2 and x = 0.6 using a step size of 0.2. f(x) = x + 3x+x+1 Execue the code when one or more rules related to the numbers of data points are violated. Submit livescript mlx and pdf.
Expert Answer:
Related Book For
Practicing Statistics Guided Investigations For The Second Course
ISBN: 9780321586018
1st Edition
Authors: Shonda Kuiper, Jeff Sklar
Posted Date:
Students also viewed these programming questions
-
Question 2: Susceptible, Infected, Recovered (SIR) Model- A hypothetical case of Covid-19 new strains for Stevens faculty and student population Winter 2022-2023 (60 Points) As of March 2023, there...
-
The new line character is utilized solely as the last person in each message. On association with the server, a client can possibly (I) question the situation with a client by sending the client's...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Use the method of separation of variables to find the product solution of the PDES: (a) u + Uy=3u (b) xu = 2yuy
-
Zn(OH)2 is an amphoteric hydroxide. Write balanced ionic equations to show its reaction with (a) HCl, (b) NaOH
-
The need for a rabbi trust would be indicated in which of the following situations? I. An acquisition. II. Bankruptcy. III. Hostile takeover. IV. Mergers. A. I, IV. B. I, II, III. C. II, III. D. I,...
-
\(\frac{5}{\sqrt{13}}\) Rationalize the denominators of the fractions, and then simplify.
-
Fielder Company obtained land by issuing 2,000 shares of its $10 par value common stock . The land was recently appraised at $85,000. The common stock is actively traded at $40 per share. Prepare the...
-
Power Ridge Corporation has forecast credit sales for the fourth quarter of the year as follows: September (actual) October November December $67,000 Fourth Quarter $57,000 52,000 77,000 Experience...
-
Hugo Boss AG is a German designer, manufacturer, and distributer of mens and womens clothing, operating in the higher end of the clothing retail industry. During the period 20042017, the company...
-
a. Assume that Bangor Co. (a U.S. firm) knows that it will have cash inflows of $950,000 from domestic operations, cash inflows of 220,000 Swiss francs resulting from exports to Swiss operations, and...
-
What are the components of Error messages? in SQL
-
Given the ever-changing landscape of marketing activities, increased levels of data collection, and other "new" challenges that consumers face, how concerned are you with privacy and security? Do you...
-
On January 1 , 2 0 2 4 , Granger Corporation had 7 9 , 0 0 0 common shares, recorded at $ 5 4 5 , 1 0 0 , and retained earnings of $ 1 million. During the year, the following transactions occurred:...
-
3 3. 7 of the coins in a box are nickels. The rest are dimes. If there are 24 dimes, how many nickels are there?
-
write a paper introduction of IFRS adoption effect in germany on financial reporting quality
-
Probability Probability Probability 1. The graph below provides a comparison of alternative techniques a US multinational company can use to hedge a receivable of SF200,000 in six months. The...
-
White Bolder Investments (WBI) You are an intern working for WBI, a large investment advisory services in Sydney. Among other regular customers, WBI has been providing advisory services for Jumbo...
-
Data set: Towels2 a. In fact, three brands of paper towels were actually tested with three amounts of water. The data for the complete study are provided in Towels2. Write a statistical model...
-
Explain why the model yi = 0 + 1xi is not appropriate, but I = b0 + b1xi is appropriate.
-
Create a scatterplot with the regression line in Question 11. Use the graph to give an interpretation of the slope and y-intercept, b1 and b0, in the context of the game study.
-
Assume that the production manager at Alumafloat reminds you that four years ago sales skyrocketed for a while. Demand was so great that production increased to the limit of the companys capacity....
-
Tina Alberts is thinking about trading her car for a new one. Her present car is only three years old, completely paid for, but out of warranty. The cars original cost was $22,000. Lately, the car...
-
The production manager at Ace Manufacturing is contemplating whether he should upgrade some old production equipment. He is considering the following factors: Required: For each item listed, indicate...
Study smarter with the SolutionInn App