/finite-differences.py

comparison of derivative discretization methods

Primary LanguagePython

Finite Differences

In this small python project, various different methods of derivative discretization are compared.

Setup

To run the code, you need to have `python3` installed on your machine.

If you also have the `make` CLI tool, you can run the project by executing the following two commands:

make setup
make fd

If you don’t, you can also navigate to the `./bin/` directory and execute the two binaries manually from there.

cd ./bin
./setup
./run

./out/fd-comparison.png ./out/fd-error-vs-x.png ./out/fd-error-vs-h.png