I want to apply the Runge-Kutta-Method (the normal one, fourth order) on the Lotka-Volterra equations, but how can I do that? Just do the steps, alternating between the two functions?
How to do Runge-Kutta with two coupled differential equations?
0
$\begingroup$
ordinary-differential-equations
-
0@Riccardo.Alestra: OK, thanks! So basically, I was right, I just have to iterate through the functions, doing a step on each one? Hmm, that's actually pretty logical. Thanks! Mind submitting this as an answer so that I can accept it? – 2012-03-05
1 Answers
2
Expanding the comment by Riccardo Alestra: A system of two equations for functions $y,z$ can be thought of a single equation for a vector of dimension $2$, namely $(y,z)$. The formulas that constitute the Runge-Kutta method make just as much sense for vectors as for scalars. In fact, the Wikipedia article on RK methods says at the beginning:
Here, $y$ is an unknown function (scalar or vector)