Question: You are to write a program in Matlab to evaluate the forward finite difference, backward finite difference, and central finite difference approximation of the first
You are to write a program in Matlab to evaluate the forward finite difference, backward finite difference, and central finite difference approximation of the first derivative of the following function:
at the location using a step size of dots Evaluate the exact derivative and compute the error for each of the three finite difference methods.
Generate a table of results for the error for each finite difference at each value of
Generate a plot containing the log of the error for each method vs the log of
Repeat this in single precision.
What is machine epsilon in the default Matlab real variable precision.
What is machine epsilon in the Matlab real variable single precision.
Instructions: your project files should have a comment that has
Your name.
Due date of the project.
Name of the project.
Submit your Matlab project files along with output generated for questions on
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
