Consider the following hypothetical reaction system which was first proposed by Alfred J. Lotka (Lotka-Voltera System): $$ \begin{align} r1:& \;\; X \rightarrow 2 X \\ r2:& \;\; X + Y \rightarrow 2 Y \\ r3:& \;\; Y \rightarrow \varnothing \end{align} $$
dSdt( S, t )
which computes the rate of change for each species, given the vector of current species concentrations $S$ and the current time $t$. Assume that all reactions follow irreversible mass-action kinetics with parameters $k_1 = 1.5$, $k_2 = 0.8 $ and $k_3 = 0.9$, each equal to
In [1]:
import numpy as np
import scipy as sp
import scipy.integrate
from matplotlib import pyplot as plt
plt.style.use('ggplot')
%matplotlib inline
In [ ]: