lectures/notes that the forward difference quotient Dr[f; x, h]:= = f(x+h) - f(x) h converges linearly,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
lectures/notes that the forward difference quotient Dr[f; x, h]:= = f(x+h) - f(x) h converges linearly, and the central difference quotient Dc[f; x,h] = f(xh) f(xh) - 2h 4 converges quadratically to f'(t) as h0 if f is smooth enough and no round-off errors occur. a) Write a function d=D_F(f,x,h) in Matlab that computes the forward difference quotient of f with step-size h at the point x. b) Write a function d-D_C(f,x,h) in Matlab that computes the central difference quotient of f with step-size h at the point x. c) Write a script diff_test in Matlab which uses the functions from tasks a) and b) to plot the errors ep(h)|sin'(1) Dr[sin; 1, h], ec(h) = | sin'(1) Dc[sin; 1, h]| = for h; 10/4, i = 0, 1,..., 50 into a loglog plot. Add a proper title, axis labels and a legend to your figure. lectures/notes that the forward difference quotient Dr[f; x, h]:= = f(x+h) - f(x) h converges linearly, and the central difference quotient Dc[f; x,h] = f(xh) f(xh) - 2h 4 converges quadratically to f'(t) as h0 if f is smooth enough and no round-off errors occur. a) Write a function d=D_F(f,x,h) in Matlab that computes the forward difference quotient of f with step-size h at the point x. b) Write a function d-D_C(f,x,h) in Matlab that computes the central difference quotient of f with step-size h at the point x. c) Write a script diff_test in Matlab which uses the functions from tasks a) and b) to plot the errors ep(h)|sin'(1) Dr[sin; 1, h], ec(h) = | sin'(1) Dc[sin; 1, h]| = for h; 10/4, i = 0, 1,..., 50 into a loglog plot. Add a proper title, axis labels and a legend to your figure.
Expert Answer:
Related Book For
Calculus Early Transcendentals
ISBN: 978-0321947345
2nd edition
Authors: William L. Briggs, Lyle Cochran, Bernard Gillett
Posted Date:
Students also viewed these programming questions
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
Python code below. it is not displaying all the requirements: Remove all the punctuations and non-English words, then count the number of the rest of the words in the file Using the words after step...
-
A thermocouple Type K is calibrated in lab condition at 50% relative humidity (RH) prior to outdoor operation. After 12-month in outdoor installation, the thermocouple is again tested at 75% RH. Both...
-
Continuous random variables X and Y have joint PDF fx,y(x,y). Show that W = X-Y has PDF Use a variable substitution to show fw(w) = | fx.Y(y + tu , y) dy.
-
Gustavsson AB, manufacturer of tractors and other heavy farm equipment, is organized along decentralised lines, with each manufacturing division operating as a separate profit centre. Each divisional...
-
Eco-control has five procedural steps.Think of an important corporate environmental intervention (e.g. emission of waste-water). With reference to this corporate environmental intervention, explain...
-
Kate's Kite Company (a corporation) sells and repairs kites from manufacturers around the world. Its stores are located in rented space in malls and shopping centers. During its first month of...
-
Read the attached pdf titled 'A Cat Corp' . Summarize the major events in the case. Address the following questions: What criteria would you use to make the decisions? How would you rank those...
-
Embutidos Vallina SA has two direct-cost categories: direct materials and direct manufacturing labour. Its single indirect-cost category (manufacturing overhead) is allocated on the basis of...
-
The average weight of an elephant is 6.42 tons with a standard deviation of 1.07 tons. Use the Empirical Rule to answer the following questions. 1. What weight is 3 standard deviations below the...
-
What information should you include in the introduction of a cover letter?
-
What are the advantages and disadvantages of online surveys?
-
Talk to students at your school who are interviewing for jobs this term. Possible questions to ask them include the following: What field are you in? How good is the job market in that field this...
-
What are five types of business presentations that you may encounter in the workplace?
-
Why is it important not to read directly from your notes during a presentation?
-
A gas occupies a volume of 200 mL at a pressure of 400 Torr. At what pressure must the gas be for the volume to change to 75 mL.
-
Why is disclosure of depreciation or amortization methods and rates so important?
-
Two cylindrical swimming pools are being filled simultaneously at the same rate (in m 3 /min; see figure). The smaller pool has a radius of 5 m, and the water level rises at a rate of 0.5 m/min. The...
-
Determine whether the following statements are true and give an explanation or counterexample. a. It is possible that a computer algebra system says and a table of integrals says b. A computer...
-
Use a table of integrals to determine the following indefinite integrals. These integrals require preliminary work, such as completing the square or changing variables, before they can be found in a...
-
A large population of rats had been fed with individually varying mixtures of wholegrain wheat and puffed wheat to see whether the composition of the food has any influence on the lifetimes of the...
-
The temperatures \(X\) and \(Y\), measured daily at the same time at two different locations, have the joint density \[f_{X, Y}(x, y)=\frac{x y}{3} \exp \left[-\frac{1}{2}\left(x^{2}+\frac{y^{3}}{3}...
-
Let \[f_{X, Y}(x, y)=c x^{2} y, 0 \leq x, y \leq 1\] be the joint probability density of the random vector \((X, Y)\). (1) Determine the constant \(c\) and the marginal densities. (2) Are \(X\) and...
Study smarter with the SolutionInn App