[Tutor] Lotka-Volterra Model Simulation Questions
Oscar Benjamin
oscar.j.benjamin at gmail.com
Sat Sep 29 10:41:06 CEST 2012
On Sep 29, 2012 2:25 AM, "Alan Gauld" <alan.gauld at btinternet.com> wrote:
>
> On 28/09/12 21:32, Jim Apto wrote:
>
>> I'm relatively new to python, and was asked to program a lotka-volterra
>> model (predator and prey relation) simulator.
>
>
> No idea what that means in practice but commenting purely on the code
provided...
>
>
>> x represents prey population
>> y represents predator population
>
>
> so use names that say so, like preyPop and predatorPop
> Its only a few extra letters typing but makes things much more readable.
As a mathematician I'd have to disagree with you there Alan. This model
already has an established notation:
http://en.m.wikipedia.org/wiki/Lotka%E2%80%93Volterra_equation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120929/9d2ba27c/attachment.html>
More information about the Tutor
mailing list