Question: (Numerical Analysis with MATLAB) (a) Make a table of the error of the three-point centered difference formula for f''(0), where f(x) = cos(x), with h
(Numerical Analysis with MATLAB)
(a) Make a table of the error of the three-point centered difference formula for f''(0), where f(x) = cos(x), with h = 10-1 ,10-2 , ,10-12, the table should inlcude 3 columns like (h,f(x),error)
(b) Draw a plot of the results. Where does the minimum error appear to occur, in terms of machine epsilon?
(c) Does the minimum error correspond to the theoretical explanation? In other words, what is going on here?
Please worked MATLAB code here.
Step by Step Solution
There are 3 Steps involved in it
To address this numerical analysis problem we need to approximate the second derivative of fx cosx at x 0 using the threepoint centered difference for... View full answer
Get step-by-step solutions from verified subject matter experts
