Q1. Subtractive cancellation occurs when two nearly equal numbers are subtracted. This is a common cause...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q1. Subtractive cancellation occurs when two nearly equal numbers are subtracted. This is a common cause of noticeable round-off error. Let's see how this affects numerical differentiation. a) Write a code to approximate the first derivative of f = e* at x = 0 using the forward difference formula (exth - e*)/h with h = 10-, 10-, 10-,..., 10-10. Tabulate the results and true errors. Plot true error vs. h. Comment on the drop rate of the error. b) Repeat part (a) using the central difference formula (exth ex-h)/(2h). Q1. Subtractive cancellation occurs when two nearly equal numbers are subtracted. This is a common cause of noticeable round-off error. Let's see how this affects numerical differentiation. a) Write a code to approximate the first derivative of f = e* at x = 0 using the forward difference formula (exth - e*)/h with h = 10-, 10-, 10-,..., 10-10. Tabulate the results and true errors. Plot true error vs. h. Comment on the drop rate of the error. b) Repeat part (a) using the central difference formula (exth ex-h)/(2h).
Expert Answer:
Answer rating: 100% (QA)
The problem presented is about numerical differentiation and the effects of subtractive cancellation on the accuracy of numerical derivatives Let me walk you through both parts of the question one by ... View the full answer
Related Book For
Computer organization and architecture designing for performance
ISBN: 978-0136073734
8th edition
Authors: william stallings
Posted Date:
Students also viewed these mechanical engineering questions
-
Please do it fast I Conceptual and Analytical 1. (a) Rewrite the following expressions using the lag operator. [Show steps] Yt = t + 0.8t-1 +0.8t-2 (b) Rewrite the following expressions without using...
-
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...
-
ttth Suppose that the sequence of bags {Bn | n N} is recursively enumerated by the computable function e(n, x) = fn(x), [7 marks] Hence prove that the set of all recursive bags cannot be recursively...
-
Did you have imaginary friends when you were a young child? What do you remember about them and their value to you?
-
Find the AM1 geometry, dipole moment, and vibrational frequencies of formaldehyde. Compare the results with experiment and with the HF/3-21G and 6@31G* results (Prob. 15.45).
-
The price of automobiles currently equals both the marginal social benefit and the marginal social cost at existing annual output. A tax is levied on the sale of cars. Assuming that the tax increases...
-
The following information was disclosed in the 2015 annual report of The Arcadia Company. Fill in the missing values. Beginning inventory. Purchase of inventory.. Inventory available for sale. Ending...
-
Replacement Decisions Suppose we are thinking about replacing an old computer with a new one. The old one cost us $360,000; the new one will cost $730,000. The new machine will be depreciated...
-
Sanofi 54 andGlaxoSmithKline (GSK) two of the largest vaccine manufacturers in the world, have just introduced a new vaccine of Covid- 19 that they say is much easier to store, therefore, has the...
-
Joey, a public limited company, operates in the media sector. Joey has investments in two companies. The draft statements of financial position at 30 November 20X4 are as follows: The following...
-
Number your paper from 1-18 and list the correct letter choice/term for each statement. A. Administrative law B. Allied health C. Code of ethics D. Statutory law E. Value F. Etiquette G. Ethics H....
-
What is a brake?
-
Name eight examples of risk that management should identify and control.
-
When auditing individual accounts and disclosures, an auditor's objective is to determine the validity of management's a. Calculations. b. Recording process. c. Assertions. d. Internal control.
-
Differentiate between a self-locking and self-energizing brake.
-
Why do auditors make preliminary estimates of materiality for the individual accounts in the financial statements?
-
From your perspective which manufacturing environment is applied in Tesla's supply chain: ETO, MTO, ATO or MTS?
-
A routine activity such as pumping gasoline can be related to many of the concepts studied in this text. Suppose that premium unleaded costs $3.75 per gal. Work Exercises in order. Use the...
-
What are the differences among UMA, NUMA, and CC-NUMA?
-
A microprocessor has a memory write timing as shown in Figure 3.19. Its manufacturer specifies that the width of the Write signal can be determined by T - 50, where T is the clock period in ns. a....
-
Consider the following code: for (i = 0; i < 20; i++) for ( j = 0; j < 10; j++) a[i] = a[i]* j a. Give one example of the spatial locality in the code. b. Give one example of the temporal locality in...
-
Professor Slim Pickens makes the following statement in his Intermediate II Accounting class: The standards of fieldwork provide the foundation to ensure that the financial statements present fairly...
-
Why do you think mandatory job rotation and vacations are effective controls to reduce instances of fraud? In its 2008 Report to the Nation on Occupational Fraud and Abuse, the Association of...
-
Does it surprise you that the audit of ICFR and external audit were ranked at the bottom as effective tools to prevent/detect fraud? Why or why not? In its 2008 Report to the Nation on Occupational...
Study smarter with the SolutionInn App