Consider the function
Using the symmetric 3-point formula and 5-point formula, compute the numerical
second derivative
This code will also write into a file called results.dat the analytic and
numerical derivatives as a function of the step size
The jupyter notebook will read the output from your fortran code and make a
log-log plot of the error of the numerical derivative as a function of
In order to run the program you'll need to be on some sort of Linux machine to make use of the makefile. Once you clone the repository and get into the directory via terminal then type make and then ./numerical-derivatives. From here you'll see that there's an output file. Now you can open and run the python code in jupyter to see analysis of the results.
The symmetric three-point formula is:
The symmetric five-point formula is:
The big O notation here is saying the error is of