Which language would you propose for solving a system with:
using 4th order Runge Kutta or the like.
Speed matters a lot but would sacrifice for:
I'm mostly between a Lisp and OCaml but any other suggestion is welcomed.
Thanks!
Here's an implementation of RK in Common Lisp:
http://github.com/bld/bld-ode/blob/master/rk.lisp
The nice thing about Common Lisp is that you can start with simple and elegant code and then make the critical bits run fast (e.g. by switching from mostly functional to stateful computation, or by declaring types).
SBCL has an excellent native-code compiler.
RK4 is a very basic method, and there lots of excellent implementations that are already written. Use one of them, and spend your effort on other aspects of the project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With