Dynamical systems in biology
BIO-341
C++ Runge-Kutta integration code for linear 2D system
This page is part of the content downloaded from C++ Runge-Kutta integration code for linear 2D system on Wednesday, 25 December 2024, 20:38. Note that some content and any files larger than 50 MB are not downloaded.
Description
C++ implementation of a Runge Kutta integration of the linear 2D system in Lecture 4. Compile with:
g++ -c -O3 rk.cpp
g++ -o rk rk.o
And use the bash script rk.sh to specify the matrix A, number of steps, axis limits, and a set of initial points (x0, ,y0) and produce a gnuplot figure.