Question

In: Advanced Math

Carry out a numerical experiment to compare the accu- racy of Formulas (5) and (19) on...

Carry out a numerical experiment to compare the accu- racy of Formulas (5) and (19) on a function f whose derivative can be computed precisely. Take a sequence of valuesforh,suchas4−n with0≦n≦12.

hint: For CE 4.3.4, use f(x) = sin x and x = 0.25, for example. Then the exact derivative is cos 0.25, so you can compare your results to it, compute errors, and study how they behave as h decreases. You may want to format your outputs so that for each n you print, on the same row, the values of h, approximate f 0 (0.25), error of the approximation, and the theoretically estimated error term (h 2/6 for formula (5) and h 4/30 for formula (19)—here we are using the fact that the derivatives of sin x are at most 1 in absolute value). Don’t forget to discuss your findings!

f′(x)≈ 1 [f(x+h)− f(x−h)] (5)

f′(x)≈ 1 [f(x+h)− f(x−h)] /2h − 1 /12h(f(x +2h)−2[f(x +h)− f(x −h)]− f(x −2h)) (19)

Solutions

Expert Solution

the code is written below:


Related Solutions

5. What is the full numerical range of possible Rf values in a TLC experiment? (not...
5. What is the full numerical range of possible Rf values in a TLC experiment? (not the range that might be desired or useful for some analytical purpose, but the absolute limits) 6. Consider the structure of ferrocene (you may wish to refer to the "Ferrocene 3D Models" item on our Blackboard site). a. Focusing solely on the hydrocarbon parts (bonds within one ring or the other, completely ignoring the iron atom and all bonds to it), what is the...
Research the recent issues of COVID-19 pandemic, and then prepare and carry out a campaign to...
Research the recent issues of COVID-19 pandemic, and then prepare and carry out a campaign to make people aware of the pandemic. Determine the causes and problems of the pandemic, analyze the problems, and generate and evaluate solutions for each problem. Finally, pick the best solution for each problem you identified. Marking Schemes: CASE STUDY: Awareness of the problem (Causes and Problems) ¨ 10 Analyze the problems ¨ 10 Generate and evaluate solutions for each problem ¨ 10 Pick the...
Research the recent issues of COVID-19 pandemic, and then prepare and carry out a campaign to...
Research the recent issues of COVID-19 pandemic, and then prepare and carry out a campaign to make people aware of the pandemic. Determine the causes and problems of the pandemic, analyze the problems, and generate and evaluate solutions for each problem. Finally, pick the best solution for each problem you identified. Write a report that include: Awareness of the problem (Causes and Problems) ¨ 10 Analyze the problems ¨ 10 Generate and evaluate solutions for each problem ¨ 10 Pick...
Detailed methodology required in carry out experiment on the effect of adulterated gasoline (gasoline + kerosene)...
Detailed methodology required in carry out experiment on the effect of adulterated gasoline (gasoline + kerosene) on the spark ignition engine.
A fast-food chain decided to carry out an experiment to assess the influence of advertising expenditure...
A fast-food chain decided to carry out an experiment to assess the influence of advertising expenditure on sales. Different relative changes in advertising expenditure, compared to the previous year, were mad in eight regions of the country, and resulting changes in sales levels were observed. The companying table shows the results Increase in advertising expenditure (%) 0 4 14 10 9 8 6 1 Increase in Sales (%) 2.4 7.2 10.3 9.1 10.2 4.1 7.6 3.5 Use Excel’s Data Analysis...
Urgent A world wide fast food chain decided to carry out an experiment to assess the...
Urgent A world wide fast food chain decided to carry out an experiment to assess the influence of advertising expenditure (A) on sales (S) or vice versa. The table shows, for 8 randomly selected countries,  percentage increase in advertisement expenditure (A) and percentage increase in sales (B) collected.  The data presented in the following table are the sums and sum of squares. (use 2 digits after decimal point)    ∑ A = 22.5 ∑ A2 = 64.91 ∑ ( A-Abar )2 =...
A scientist carry out an experiment to examine living human fibroblast cells in cell culture and...
A scientist carry out an experiment to examine living human fibroblast cells in cell culture and tag them with a membrane potential sensitive dye, TMRM. He completed measurements at 23 ºC using a confocal microscope. Observations yielded an average increase in dye brightness of 236-fold upon adding oligomycin to the mitochondria in the cells. The initial internal concentration of the TMRM dye was 9,271 nM. The external (extracellular) dye concentration remained unchanged at 154 nM. What is the membrane potential...
PLEASE ANSWER URGENT!!! A world wide fast food chain decided to carry out an experiment to...
PLEASE ANSWER URGENT!!! A world wide fast food chain decided to carry out an experiment to assess the influence of income on number of visits to their restaurants or vice versa. A sample of 8 households was asked about the number of times they visit a fast food restaurant (V) during last month as well as their monthly income (I). The data presented in the following table are the sums and sum of squares. (use 2 digits after decimal point)...
You are required to carry out the computer networking of five (5) work stations. With the...
You are required to carry out the computer networking of five (5) work stations. With the aid of a well labelled, neat diagram, show how the networking components are interconnected and produce the bill of engineering measurement and evaluation for the job.
5. You are assigned to carry out the audit of the financial statement of Gremm Chemical...
5. You are assigned to carry out the audit of the financial statement of Gremm Chemical Products Ltd for the year ended 30 June 2017. You discover that two of the audit working paper files from the preceding year’s audit is missing. The preceding year’s audit was carried out by Bale Clarke, who has already left the firm. You are concerned as you do not have much knowledge about the chemical products and this is only the second audit assignment...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT