differentiation_difference
differentiation_difference,
demonstrates how the derivative of a function can be estimated using
the finite difference method, and how roundoff error can affect
such estimates.
The notes:
Scripts:
-
fd.m,
returns a forward difference estimate to f'(x), using a stepsize of h.
-
fd_list.m,
returns fd_list, several forward difference estimates to f'(x), using
h_list, several stepsizes.
-
fd_plot1.m,
plots h versus error.
-
fd_plot2.m,
plots index versus error.
-
fd_plot3.m,
plots log ( h ) versus log ( error )
Images:
Last revised on 29 August 2019.