1) Suppose that you are a civil engineer working on a proposed change to a highway...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1) Suppose that you are a civil engineer working on a proposed change to a highway system. As part of an initial study you want to understand how traffic flow relates to distance from an airport. As part of the study you collected data as summarized below. Let d be the distance from an airport in km and s be the average speed of vehicles at that distance. You want to fit a polynomial p1 that describes s as a function of d by that polynomial. d s=f(d) 10 30 11 50 12 140 a) (3 points) Write the MATLAB code to fit the polynomial p1 of maximum degree possible for the data given b) (3 points) Plot the actual data and the polynomial p1 from a) on the same graph. c) (6 points) Using the model from part a, what will the predicted average speed at d = 11.5 km? d) (5 points) Use the model developed to predict the distance where the speeds is 75. 3) Generate data from the polynomial fit in part 1a) at points d= 10, 10.5, 11.2, 11.5. (6 points) Fit a polynomial p2 using a Newton Interpolating approach and a polynomial p3 using Lagrange interpolating polynomials. Each polynomial should be of the maximum possible degree that the data allows. Use MATLAB to plot the polynomials p2 and p3 on the same graph. 1) Suppose that you are a civil engineer working on a proposed change to a highway system. As part of an initial study you want to understand how traffic flow relates to distance from an airport. As part of the study you collected data as summarized below. Let d be the distance from an airport in km and s be the average speed of vehicles at that distance. You want to fit a polynomial p1 that describes s as a function of d by that polynomial. d s=f(d) 10 30 11 50 12 140 a) (3 points) Write the MATLAB code to fit the polynomial p1 of maximum degree possible for the data given b) (3 points) Plot the actual data and the polynomial p1 from a) on the same graph. c) (6 points) Using the model from part a, what will the predicted average speed at d = 11.5 km? d) (5 points) Use the model developed to predict the distance where the speeds is 75. 3) Generate data from the polynomial fit in part 1a) at points d= 10, 10.5, 11.2, 11.5. (6 points) Fit a polynomial p2 using a Newton Interpolating approach and a polynomial p3 using Lagrange interpolating polynomials. Each polynomial should be of the maximum possible degree that the data allows. Use MATLAB to plot the polynomials p2 and p3 on the same graph.
Expert Answer:
Answer rating: 100% (QA)
Answer As per the given details the solution should be as follows we can apply them in the po... View the full answer
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date:
Students also viewed these programming questions
-
I need help with question 5 , 7, 8, and 9 @ https://linuxzoo.net/page/wildcards_tut3.html 5. Using square brackets, move all the files from the misc directory that contain the numbers 2 or 3 into the...
-
Physical Chemistry: Need help with question 2b. The generic microstate table for the d configuration looks like the table below. Microstate table: ML 4 INTOINWA 3 2 1 0 -1 -2 -3 -4 -1 X X X X X X X X...
-
Need MATLAB code for this. Please perform only on MATLAB. Attach the output also. R(s) C(s) G(s) H(s) Figure I1.1: Negative feedback system.
-
(2) Write an 8086-assembly code to control the interrupt of (3) stepper motors and (2) servo motors in which each motor has its interrupt. The buffered mode for master was required with normal end of...
-
Two workers have the job of placing plastic labels on packages before the packages are shipped out. The first worker can place 1000 labels in 30 minutes. The second worker can place 850 labels in 20...
-
The balance sheet items of The Sweet Soda Shop (arranged in alphabetical order) were as follows at the close of business on September 30, 2011: The transactions occurring during the first week of...
-
Write a Monte Carlo code for a system of \(N\) hard spheres of diameter \(D\) on a one-dimensional ring of length \(L\) with periodic boundary conditions. Calculate the pair correlation function and...
-
Waldum Company purchased packaging equipment on January 5, 2012, for $135,000. The equipment was expected to have a useful life of three years, or 18,000 operating hours, and a residual value of...
-
what is meant by the term functionality of a database management system? Explain the responsibility of any two functionalities of a database management system. Discuss how a database transaction is...
-
Transform the E-R diagram of Figure 8-23 into a set of 3NF relations. Make up a primary key where needed and one or more nonkey attributes for each entity. Figure 8-23 TOOL ++ Used_on PROJECT Project...
-
Morgan Chase currently has a ticket to the West Virginia vs. Virginia Tech football game. This ticket has already been paid for and cannot be sold or transferred to anyone else. Originally, the...
-
Sara earns a salary of $ 3 8 , 0 0 0 and has a 1 year old child, Jolene, that lives with her. Jolene has child care expense of $ 2 , 5 0 0 . Sara has a $ 2 , 2 0 0 Roth IRA. Sara is also a half -...
-
At the end of two years, the cash flow is $13,800. The discount (interest) rate in year one is 5%, and in year 2 is 10%. What is the net present value of that cash flow? Provide two significant...
-
9. Jenny is sitting on a sled on the side of a hill inclined at 15. What force is required to keep the sled from sliding down the hill if the combined weight of Jenny and the sled is 90 pounds? (Show...
-
Jim used an automobile 75% for business and 25% for personal in 20X1. He incurred $5,000 in total expenses for the automobile. What is the largest amount of vehicle expenses that Jim can claim as a...
-
Long - term operating assets are recorded at their original purchase price plus any expenditures required to obtain and prepare the asset for its intended use. A company purchased land and a building...
-
Your family trust starts to provide you 5 constant annual payments of 10,000 with first payment due today. After the 5 payments, you will receive 5,000 annually in perpetuity. Whats the present value...
-
On October 31 Juanita Ortega, owner of Outback Guide Service, received a bank statement dated October 30. Juanita found the following: 1. The checkbook has a balance of $2,551.34. 2. The bank...
-
What are indirect cost pools?
-
Describe the flow of costs from raw materials to cost of goods sold in a manufacturing organization.
-
Respond to the following statement: Our organization has key performance indicators that measure financial and nonfinancial performance, including customer satisfaction, product and service quality,...
-
Do you believe that fraud in the United States is more or less prevalent than fraud in countries outside the United States? Why?
-
How would a fraudster conceal missing cash, especially amounts of this magnitude?
-
Why is it difficult to convict organized crime leaders?
Study smarter with the SolutionInn App