Subject: rk (runge-kutta) of dynamics package really slow?
From: Jaime Villate
Date: Fri, 09 May 2008 17:13:31 +0100
On Fri, 2008-05-09 at 08:01 -0700, Richard Fateman wrote:
> The rk package could be made faster in several ways.
> Using "ev" is probably a bad idea; subst could be used and should be
> faster.
Oh, I didn't know that. I will give it a try.
> rk could also be written in lisp directly.
When I wrote rk I didn't know lisp. Now that I know a little bit of lisp
I will try that.
Two other options that I intend to introduce are adaptive step size and
not saving all points calculated. The command that Joachim is using
creates a list with 8008 values which makes the program slow. One might
be interested in building a list with less points, while keeping the
same number of iterations.
I'd appreciate any other suggestions.
Regards,
Jaime