Question: Develop a MATLAB code that will calculate the central finite difference approximation of the first derivative for the following function at x = 0.5. f(x)

Develop a MATLAB code that will calculate the central finite difference approximation of the first derivative for the following function at x = 0.5. f(x) =-0.1x4-0.15x3-0.5x2-0.25x+ 1.2 Use an initial step size of 1. The program must check to see if the absolute relative true error is less than 3.64- 10-10 and display the results in a table. If the error is not less than the criterion, then divide the step size by a factor of 10. Continue this process until the error is less than 3.64 10-10. The final output must include the true value of the derivative at 0.5, the final approximation, and Table 1. 30 points size or Step Central Finite Difference Approximation Absolate Relative True Error 0.01 0.001 o.0001 le-o5 -1.2625 0.915999999999999 0.912534999999998 0.912500350000012 -0.91250000349985 -0.912500000033178 0.383561643835617 0.00383561643835513 3. 83561643810146-05 3.83561656713066-07 3. 8354518952016e-09 3. 6359834473543e-11 Table 1: Required Table for Problem 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
