In this assignment we compute derivatives using a variety of differencing formulas. We have see the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In this assignment we compute derivatives using a variety of differencing formulas. We have see the three-point endpoint formula for approximating f'(x): 1 '(x) [3f(x) + 4f (x + h) f(x + 2h)] 2h and the three-point midpoint formula for approximating f'(x): f'(x0) [f(xo+h) f(x h)]. 2h We have also seen the three-point midpoint formula for approximating f"(xo): "(x) 12 [(x h) 2f(x) + f (x + h)]. h2 There is also a three-point endpoint formula for approximating f'(x): f'(x0) ~ h2 - [f(x) 2f (x + h) +(x+2h)]. Continued on page 2 Part A: Suppose f(x) = e* 1/2. Using the most accurate formula above and points x = 0.25, 0.5, 0.75, 1.0, compute approximations of f'(0.5), f'(1.0), "(0.5) and f'"(1.0). What are the absolute errors in your approximations? State which formula you prefer in each case. Part B: Suppose f(x) = ex - 1/2 for x = [0,1]. In Matlab, approximate '(0.5), '(1.0), "(0.5) and "(1.0) using equal node spacings h=2m, m = 2,3,4,.... and the best formula presented, using only points on the interval [0,1]. Tabulate or form a plot of the absolute errors as a function of h. Using big-oh notation describe the experimentally observed error in your approximations as a function of h. Your answer here should be of the form O(hP): what is p? Explain how you find p. In this assignment we compute derivatives using a variety of differencing formulas. We have see the three-point endpoint formula for approximating f'(x): 1 '(x) [3f(x) + 4f (x + h) f(x + 2h)] 2h and the three-point midpoint formula for approximating f'(x): f'(x0) [f(xo+h) f(x h)]. 2h We have also seen the three-point midpoint formula for approximating f"(xo): "(x) 12 [(x h) 2f(x) + f (x + h)]. h2 There is also a three-point endpoint formula for approximating f'(x): f'(x0) ~ h2 - [f(x) 2f (x + h) +(x+2h)]. Continued on page 2 Part A: Suppose f(x) = e* 1/2. Using the most accurate formula above and points x = 0.25, 0.5, 0.75, 1.0, compute approximations of f'(0.5), f'(1.0), "(0.5) and f'"(1.0). What are the absolute errors in your approximations? State which formula you prefer in each case. Part B: Suppose f(x) = ex - 1/2 for x = [0,1]. In Matlab, approximate '(0.5), '(1.0), "(0.5) and "(1.0) using equal node spacings h=2m, m = 2,3,4,.... and the best formula presented, using only points on the interval [0,1]. Tabulate or form a plot of the absolute errors as a function of h. Using big-oh notation describe the experimentally observed error in your approximations as a function of h. Your answer here should be of the form O(hP): what is p? Explain how you find p.
Expert Answer:
Related Book For
Integrated Marketing Communications Strategic Planning Perspectives
ISBN: 978-0133157871
4th edition
Authors: Keith J. Tuckwell
Posted Date:
Students also viewed these mathematics questions
-
A computer with a printer is required for Problems 17 through 24. In these initial value problems, use the improved Euler method with step sizes h = 0.1, 0.02, 0.004, and 0.0008 to approximate to...
-
Which of the following would shift the supply curve for cigarettes? a. A change in household incomes b. A change in the price of cigars, a substitute good in consumption but not production c. A...
-
Shareholder maximization means maximizing shareholder wealth at any cost by paying dividends and/or causing the stock price to increase and keeping shareholders as top priority when reviewing...
-
A particle of mass m moves in a certain plane P due to a force F whose magnitude is constant and whose vector rotates in that plane with a constant angular velocity . Assuming the particle to be...
-
Air enters a room at two inlets and leaves at one outlet, as shown in Fig. 4.49. Determine V3 for a steady-flow situation if the velocity Ñ´2 is a) 10 m/s, b) 20 m/s, c) 30 m/s. The...
-
Evaluate the integral, if it exists. Jo sin (37rt) dt
-
Gilead is a large drug producer, with a majority of its prescription drug product sales occurring in the United States. Gilead produces anti-HIV drug therapies, including the drugs Atripla, Truvada,...
-
Best Trim, a manufacturer of lawn mowers, predicts that it will purchase 204,000 spark plugs next year. Best Trim estimates that 17,000 spark plugs will be required each month. A supplier quotes a...
-
3. Assume that the web-hosting service industry is pertectly competitive and that all web-hosting service providers are identical. Also assume that web-hosting services occur at datacenters that...
-
The data of a project are shown in the following table. Obtain the schedule, which will minimize the peak manpower requirement and also smooth out period-to-period variation in manpower requirement....
-
Justin Morris owns the majority of the shares in Dolphin Pty Ltd, and is the chairman of the board of directors of the company. In February 2017, Justin approached your audit firm, Clarke Partners,...
-
You have completed audit plan and are now ready to evaluate various components of EarthWear Clothiers to determine gaps in internal control and develop strategies to improve these gaps. CC 645...
-
The hydrohalogenation reaction with reactant shown below generates two distinctly different stereoisomers. i ) Show full mechanistic approach for this reaction and draw these two isomers with proper...
-
1. Within the current international monetary system, how is the values of each nation's (or region's) currency is determined. 2. There is no one way for every currency (such as the U.S. Dollar, the...
-
QUESTION According to the International Standard on Auditing: "The auditor has a responsibility to plan and perform the audit to obtain reasonable assurance about whether the financial statement is...
-
Like many airlines around the world, leading Australian airline Qantas is facing very difficult times in spite of having a 65% market share in its home market of Australia. Due to rising fuel costs...
-
Can partitioned join be used for r r.A s? Explain your answer
-
If a brand is using a product differentiation positioning strategy, what will the advertising message focus on? Provide an example of this strategy not mentioned in the chapter.
-
Experiential marketing is growing in popularity. Will this trend continue and will this form of communications play a more dominant role in future marketing communications strategies? Conduct some...
-
How important is assessing customer attitudes when developing an advertising campaign? Explain.
-
Ask older friends or relatives about the cost of specific items (e.g., a gallon of gas, a cup of coffee, etc.) during their youth. Also inquire bout their average wages in the past. Compare the...
-
Develop and solve a future-value, a present-value, a future value of an annuity, and a present value of an annuity problem. Establish the three known variables in each problem and solve for the...
-
What do you understand by a bank lending policy in the context of a monetary policy?
Study smarter with the SolutionInn App