09 Differentiation
25 Feb 2020Taking numerical derivatives is based on the elementary definition
\[\frac{dy(t)}{dt} := \lim_{h\rightarrow 0} \frac{y(t+h) - y(t)}{h}\]We will then derive different finite difference approximations to the derivative and assess their error.
Class material
You can follow the lecture in the slides 09-differentiation.ipynb. 1
For the problem that you should solve during the class, get the notebook 09-differentiation-students.ipynb.2
Additional resources
- Computational Physics: Ch 5.1 – 5.6
- If you are interested in integration then see the lectures on integration in 2016; this year we are skipping this part in favor of more in-depth programming exercises.
Footnotes
-
The notebook is not complete yet (only the theory/background and the student problem is available); the full notebook 09-differentiation.ipynb will be posted after the student exercise 09-differentiation-students.ipynb has been completed. ↩
-
git pull
your PHY494-resources repository. ↩