Appendix B — Odin notes

deriv() for continuous time, update() for discrete time.