Using Trapezoid and Simpson methods; write an m-file that plots and uses numerical integrations to estimate...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Using Trapezoid and Simpson methods; write an m-file that plots and uses numerical integrations to estimate the following function y = x2 - 2x + 4 and its integral of y over the interval [0,30]. [10 marks] QUESTION 7 The velocity profile of a falling film is pg8? cos(B) Vz = (1-) 2µ with the following constants: p = 800 g = 9.81 0 = 2.5 x 10-3 B = T1/4 u = 2.5 x 10-7. Calculate the volume flow per meter qm = S vzdx %3D with Simpson's rule (i.e.,for tol =1e^-6 and 1e^+2) and with the trapezoidal rule (i.e., if you take 5, 50 and 500 nodes in the interval (0,s)). Is any of these approximations actually the exact value? Why? [20 mark] QUESTION 8 8.1 What is Vectorization and why is it used? [4 marks] 8.2 Refine the below command in the vectorized form: [4 marks] A=[1:10)'; B=[1 26 9); D=zeros(length(A),1): for i=1:length(B) C=(A==B(1)); D=D+C; end Using Trapezoid and Simpson methods; write an m-file that plots and uses numerical integrations to estimate the following function y = x2 - 2x + 4 and its integral of y over the interval [0,30]. [10 marks] QUESTION 7 The velocity profile of a falling film is pg8? cos(B) Vz = (1-) 2µ with the following constants: p = 800 g = 9.81 0 = 2.5 x 10-3 B = T1/4 u = 2.5 x 10-7. Calculate the volume flow per meter qm = S vzdx %3D with Simpson's rule (i.e.,for tol =1e^-6 and 1e^+2) and with the trapezoidal rule (i.e., if you take 5, 50 and 500 nodes in the interval (0,s)). Is any of these approximations actually the exact value? Why? [20 mark] QUESTION 8 8.1 What is Vectorization and why is it used? [4 marks] 8.2 Refine the below command in the vectorized form: [4 marks] A=[1:10)'; B=[1 26 9); D=zeros(length(A),1): for i=1:length(B) C=(A==B(1)); D=D+C; end
Expert Answer:
Related Book For
Introductory Econometrics A Modern Approach
ISBN: 9781337558860
7th edition
Authors: Jeffrey Wooldridge
Posted Date:
Students also viewed these accounting questions
-
The data in MEAPSINGLE were used to estimate the following equations relating school-level performance on a fourth-grade math test to socioeconomic characteristics of students attending school. The...
-
Use linear approximations to estimate the following quantities. Choose a value of a that produces a small error. 1/203
-
Use linear approximations to estimate the following quantities. Choose a value of a that produces a small error. tan 3
-
Write a check (Figure 4 - 42) dated June 13, 20XX, to Byron Johnson in the amount of $296.83 for a washing machine, Complete the check stub. Figure 4 - 42 456 456 Amount To For KRA, INC 2596 Jason...
-
One way to make a compass is to stick a magnetized needle into a piece of cork and float it in a glass bowl full of water. The needle will align itself with the horizontal component of Earth's...
-
Tapatio S.A. de C.V. acquired a new piece of manufacturing equipment on January 1, 2022, for a cash price of 500,000 pesos. The equipment was expected to have a useful life of 10 years and no...
-
Figure P4.64 shows a fixed control volume. It has a volume \(V_{0}=1.0 \mathrm{ft}^{3}\), a flow area \(A=1.0 \mathrm{ft}^{2}\), and a length \(\ell_{0}=1.0 \mathrm{ft}\). Position \(x\) represents...
-
Refer to the previous question. Suppose location 1 has 15 cars available rather than 16. Create a Sensitivity Report for this problem and answer the following questions: a. Is the optimal solution...
-
What are some strategies to make use of Opportunities to minimize the Weaknesses of the company Revlon? What are some strategies to minimize the potential dangers lying in sectors where Weaknesses...
-
Javier is a police officer or Javier is a little league coach. If Javier is a police officer, then Javier is a community leader. Javier is a little league coach if and only if Javier is a community...
-
Pronghorn Supply Company sold merchandise to Ace Company on account for $88,000 with credit terms of ?/10, n/30. The cost of the merchandise sold was $66,000. During the discount period, Ace Company...
-
Nearshoring is the outsourcing strategy by which a company transfers part of its production to third parties who, despite being located in other countries, are located in nearby destinations and with...
-
The parts are collected at the subcontractors' facilities the day before the production run begins. To do this, a freight service is hired that provides a truck with a driver and assistant, the cost...
-
Explain which closing disclosure calculations of closing cost details (under loan costs and other costs) are incorrect, show the corrected calculations, and the actual math used to make your...
-
A Maryland public school classroom teacher holding a standard or advanced professional certificate may claim a nonrefundable credit against state income tax for up to what amount of their...
-
In 2023, Barbara allocated her entire $22,500 elective deferral to her employer's 401(k) designated Roth account. How much, if any, of the contribution is made with after-tax income? Why and why not?
-
9. The Robinson family owns a 3-bedroom condo. Both parents work full time. Mr. Robinson's yearly income is $43 000 and Mrs. Robinson's yearly income is $47 000. Below are the expenses that the...
-
In muscle tissue, the ratio of phosphorylase a to phosphorylase b determines the rate of conversion of glycogen to glucose 1phosphate. Classify how each event affects the rate of glycogen breakdown...
-
Use the data in PRISON.DTA to answer the following questions. Refer to Example 16.8. In the data set, variables beginning with g are growth rates from one year to the next, obtained as the changes in...
-
If A and B are n n diagonal matrices, show that AB = BA.
-
Use the data in FERTIL3 to verify that the standard error for the LRP in equation (10.19) is about .030.
-
Youve conducted a study to determine how the number of calories a person consumes in a day correlates with time spent in vigorous bicycling. Your sample consisted of ten women cyclists, all of...
-
Every financial advisor has a strategy for predicting the direction of the stock market. Most focus on fundamental economic data, such as interest rates and corporate profits. But an alternative...
-
State whether the prediction (or implied prediction) should be trusted in each of the following cases, and explain why or why not. a. Youve found a best-fit line for a correlation between the number...
Study smarter with the SolutionInn App