Description
Write a MATLAB function that calculates f
0
and its truncation error using the Three-Point Endpoint Formula. Your code should display (for each value of h) the approximation,the truncation error and the absolute
error.
Test your code using f(x) = 1
x
2
, x0 = 1.2, h = 0.4, h = 0.2, h = 0.1, h = 0.05.
Name your file: WS6_LastName_FirstInital()
Submit your MATLAB code file to Dropbox no later than Saturday (11:59pm), 10/10.
1