Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/notebooks/lotka-volterra.ipynb
Views: 531
Kernel: Python 3
Modeling and Simulation in Python
Implementation of Lotka-Volterra using Euler and run_ode_solver
Copyright 2018 Allen Downey
In [1]:
Euler with implicit dt=1
In [2]:
In [3]:
In [4]:
In [5]:
In [6]:
In [7]:
In [8]:
<matplotlib.axes._subplots.AxesSubplot at 0x7fa73f3c7c88>
Using the ODE solver
In [9]:
In [10]:
In [11]:
In [12]:
<matplotlib.axes._subplots.AxesSubplot at 0x7fa72c15b9b0>
In [13]:
In [14]:
<matplotlib.axes._subplots.AxesSubplot at 0x7fa72c06cf60>
Euler, running for a longer duration
In [15]:
In [16]:
<matplotlib.axes._subplots.AxesSubplot at 0x7fa72c052240>
Running the ODE solver for a longer duration
In [17]:
In [18]:
<matplotlib.axes._subplots.AxesSubplot at 0x7fa72bfd2630>
In [ ]: