Runge-Kutta methods for integrating systems of differential equations
$ luarocks install math-rungekutta
RungeKutta.lua offers algorithms for the numerical integration
of simultaneous differential equations of the form dY/dt = F(t,Y)
where Y is an array of variables whose initial values Y(0) are
known, and F is a function known from the dynamics of the problem.