Purchase Solution

Loss of accuracy (Matlab only)

Not what you're looking for?

Ask Custom Question

1) Use Taylor expansions to show that f(t+h)-f(t-h)/(2h)=f '(t)+O(h^2)

2) Let f(x)=e^x and t=0. Plot the error (using Matlab) in the approximation of f '(t) by the finite difference in 1) for h=logspace(-1,-16,100). Explain your results

3) Use calculus to show that the optimal h to use in the approximation in 2) - the one that gives the smallest error- is h_opt is approximately CE^1/3

where E is approximately 2.2 x 10^-16 is a machine precision. Does this result agree with the data you plotted in 2)?

Purchase this Solution

Solution Summary

This solution provides step-by-step explanations for how to solve the given calculus problems.

Solution Preview

** Please see the attached file for the complete solution response **

Hello,

I have posted the solution in a pdf. I have also attached the accompanying .m file.

2.
See plots when the ...

Purchase this Solution


Free BrainMass Quizzes
Multiplying Complex Numbers

This is a short quiz to check your understanding of multiplication of complex numbers in rectangular form.

Know Your Linear Equations

Each question is a choice-summary multiple choice question that will present you with a linear equation and then make 4 statements about that equation. You must determine which of the 4 statements are true (if any) in regards to the equation.

Exponential Expressions

In this quiz, you will have a chance to practice basic terminology of exponential expressions and how to evaluate them.

Probability Quiz

Some questions on probability

Geometry - Real Life Application Problems

Understanding of how geometry applies to in real-world contexts