Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This question is about using MATLAB, please plot the answers in MATLAB and include the MATLAB results. 9. Joe had decided to buy stocks of
This question is about using MATLAB, please plot the answers in MATLAB and include the MATLAB results.
9. Joe had decided to buy stocks of a particularly promising Internet company. The price per share was $100, and Joe subsequently recorded the stock price at the end of each week. With the abscissae measured in days, the following data were acquired: (0,100),(7,98),(14,101),(21,50),(28,51),(35,50). In attempting to analyze what happened, it was desired to approximately evaluate the stock price a few days before the crash. (a) Pass a linear interpolant through the points with abscissae 7 and 14. Then add to this data set the value at 0 and (separately) the value at 21 to obtain two quadratic interpolants. Evaluate all three interpolants at x=12. Which one do you think is the most accurate? Explain. (b) Plot the two quadratic interpolants above, together with the data (without a broken line passing through the data) over the interval [0,21]. What are your observationsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started