#+title: Accuracy notes
#+date: <2021-01-22>
Mike Bostock's page uses the [[https://github.com/littleredcomputer/odex-js][Odex.js]] library for running the differential equation. The library includes a predator-prey [[http://blog.littleredcomputer.net/math/odex/js/2016/04/03/lotka-volterra.html][demo]] of its own. I assumed Odex is the "gold standard". I tried some quicker algorithms to see how close I could get.
First up, /Euler's method/ is the simplest numerical integration. Here's a chart of how Euler's method (green) compares to Odex (gray), both near the beginning of the simulation and after 100 seconds, with a tick size of 1/40th second:
#+begin_export html