1. Consider the function f(x) = (x-3x+2) arctan x. Estimate the derivative of the function at...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Consider the function f(x) = (x-3x+2) arctan x. Estimate the derivative of the function at the point x = 0 using each of the three formulas listed below for all of the following values of h: h = 10-", n = 1,3,6. Make a loglog plot of your error verses h (use the same plot for both methods). f'(xo) ~ f'(xo)~ f'(xo)~ f(xo+h)-f(xo) h f(xo+h)-f(xo - h) 2h -f(xo + 2h) +8f(ro+h)-8f(ro-h) + f(zo-2h) 12h (forward difference) (3 pt centered difference) (5 pt centered difference) For n 1,3,6 call FD1, FD3, FD6 the result obtain with the forward difference, CD31, CD33, CD36 the result obtain with the 3 point centered difference, and CD51, CD53, CD56 the result obtain with the 5 point centered difference. Plot your error for all three methods on the same graph. Explain your findings. Is the error decreasing with h? Why or why not? Which method has the largest error? Which method has the smallest error? Why? Write those answers in comment using %. 1. Consider the function f(x) = (x-3x+2) arctan x. Estimate the derivative of the function at the point x = 0 using each of the three formulas listed below for all of the following values of h: h = 10-", n = 1,3,6. Make a loglog plot of your error verses h (use the same plot for both methods). f'(xo) ~ f'(xo)~ f'(xo)~ f(xo+h)-f(xo) h f(xo+h)-f(xo - h) 2h -f(xo + 2h) +8f(ro+h)-8f(ro-h) + f(zo-2h) 12h (forward difference) (3 pt centered difference) (5 pt centered difference) For n 1,3,6 call FD1, FD3, FD6 the result obtain with the forward difference, CD31, CD33, CD36 the result obtain with the 3 point centered difference, and CD51, CD53, CD56 the result obtain with the 5 point centered difference. Plot your error for all three methods on the same graph. Explain your findings. Is the error decreasing with h? Why or why not? Which method has the largest error? Which method has the smallest error? Why? Write those answers in comment using %.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
The Company XYZ has 1173 blocks of building for its business operation, where each block has 7 floors. The distance between each floor is 7 meters. ] (ii) Give a function run2diff which can be...
-
re Regular Languages and Finite Automata (a) Let L be the set of all strings over the alphabet {a, b} that end in a and do not contain the substring bb. Describe a deterministic finite automaton...
-
(a) Using the ion-pair equilibrium constant from Appendix J, with activity coefficients = 1, find the concentrations of species in 0.025 M MgSO 4 . Hydrolysis of the cation and anion near neutral pH...
-
Using the data from Problem 9, test whether the standard deviation of wait time at Wendy's is more than that at McDonald's at the a = 0.05 level of significance.
-
Which of the bonds AD is most sensitive to a 1% drop in interest rates from 6% to 5% and why? Which bond is least sensitive? Provide an intuition explanation for your answer.
-
What is the most useful source of information on customers generated by any company? Identify all the possible data available on that source.
-
Learning curve, cumulative average-time learning model. Global Defense manufactures radar systems. It has just completed the manufacture of its first newly designed system, RS-32. Manufacturing data...
-
The short-term financing policies can be flexible or restrictive. Discuss THREE (3) advantages and TWO (2) disadvantages of the Restrictive policy.
-
Complete the statement of cash flow for January through June on the CashFlow worksheet by completing the following tasks. As part of the process, you will need to use a circular reference. You will...
-
You are a General Manager for DC Motors. You operate as a lateral support service department and have selected one of your groups to examine. This group is indicative of the shop as a whole. You want...
-
In 2002, Bernard Wilson executed a deed by which he conveyed Greenacre for a consideration of one dollar, receipt of which was acknowledged, "to Bernie for life, then to Carey for life, but if Carey...
-
24. Vanessa is the sole shareholder of V Corporation. V Corporation was formerly a C Corporation but is currently and S Corporation. At the end of 2019, before considering distributions, V...
-
Brandon, an individual, began business two years ago. In the current year, Brandon sold the following business assets: Asset Original Cost Accumulated Depreciation Sales Price Machinery 30,000 7,000...
-
Ruby is injured in a car accident, which was Bubba's fault. She sued him for $150,000 alleging negligence, which involves a question of state law. Ruby is a citizen of North Carolina, while Bubba is...
-
The controller of ABC Co., a Canadian public corporation, has prepared the accounting income statement for the year ended December 31, 2022: ABC Co. Income Statement For the Year Ended December 31,...
-
Suppose you are Mr. Y who is working as an assistant engineer of PGCB. You have studied a wye-wye system during your investigation of a three-phase system. In this system, a Y-connected balanced...
-
The landing gear of an aircraft with: mass of 2000 kg the spring-mass-damper system Consider that the runway surface is y(t) = 0.2 cos 157.08t stiffness of the spring is 5 x 105 N/m. What is the...
-
Cyclohexanol was passed over a catalyst to form water and cyclohexene: CyclohexanolcatalystWater+Cyclohexence It is suspected that the reaction may involve a dual-site mechanism, but it is not known...
-
The first-order, irreversible, exothermic liquid-phase reaction A B is to be carried out in a jacketed CSTR. Species A and an inert I are fed to the reactor in equimolar amounts. The molar feed rate...
-
Use the reaction and corresponding parameter values in Problem P12-16B to describe the startup of a CSTR with T i = 25C and CAi = 0.0. Problem P12-16B The elementary reversible liquid-phase reaction...
-
_________ is a form of attribution error that involves blaming the environment for problems that we may have caused ourselves. (a) Self-serving bias (b) Fundamental attribution error (c) Projection...
-
Which leadership theorist argues that ones leadership style is strongly anchored in personality and therefore very difficult to change? (a) Daniel Goleman (b) Peter Drucker (c) Fred Fiedler (d)...
-
How is a person with an authoritarian personality expected to act? (a) Strong tendency to obey orders. (b) Challenges the authority of others. (c) Tries to play down status differences. (d) Always...
Study smarter with the SolutionInn App