Question: Problem 2 ( 1 5 points ) ( Core Course Outcomes 5 & 1 1 ) / ( M ) at labGrader Consider the function
Problem pointsCore Course Outcomes & Mat labGrader
Consider the function
fxcosx
where the argument is in radians, and its analytical second derivative
ddxfxcosx
defined on the interval x evaluated at Mk equally spaced points xi where Mkk Use function
mySecondDerivativeOrder to calculate the crror ei of the finite difference approximation of dfdx at each point xi
For kdots, plot the entrywise norm Lk of the error eisee Exam as a function of hk using a logarithmic
scale for both Lk and hk
Notes for the MatlabGrader script submission:
Comment out clear or clear all in your script when submitting to MatlabGrader.
Generate and store the figure handle examFigl for the graph before doing any plotting commands, using
examFigl figure;
Properly label both axis using the appropriate variable names hL
Do not include the source code for any functions in your script submission. Necessary functions are provided on Matlab
Grader.
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
