Question: Problem 4 Verify your fourth _ order _ diff ( ) function by performing a convergence analysis on the following function: f ( x )
Problem
Verify your fourthorderdiff function by performing a convergence analysis on the following function:
exp
To do this, let's select a single point and a series of heights For each height, compute the error between the numerical derivative and the exact derivative, exp The error is the absolute value of the difference between the output of your function, and the value of the exact derivative.
In your write up include a line plot of vs error. Then, verify that we see convergence rate by estimating the convergence rate the following way: Rateilogerrorierroriloghihi for i
In your write up print this rate vector and include a screenshot of your code which generated the plot and estimated the convergence rate.
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
