Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-10-01 Thread Brian van den Broek
On 1 October 2012 19:30, Alan Gauld wrote: > translation for them, not just complain of their 'ignorance'. But that's now > taking things way, way off topic!! :-) I think you meant ``way^2 off topic'' ;-) Brian vdB ___ Tutor maillist - Tutor@python

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-10-01 Thread Alan Gauld
On 01/10/12 21:05, Brian van den Broek wrote: On 30 September 2012 04:37, Alan Gauld wrote: like Greek!) Of course, the abstraction is powerful in its own right because it can then be applied in multiple domains, but that abstraction is often the barrier to people understanding the principle.

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-10-01 Thread Brian van den Broek
On 30 September 2012 04:37, Alan Gauld wrote: > > One of the things that makes math hard for people to grasp is its insistence > on abstracting functions/values to single letter names etc. (especially when > those names are in a foreign language/symbology, > like Greek!) Of course, the abstracti

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-10-01 Thread Albert-Jan Roskam
- Original Message - > From: Alan Gauld > To: tutor@python.org > Cc: > Sent: Sunday, September 30, 2012 10:22 AM > Subject: Re: [Tutor] Lotka-Volterra Model Simulation Questions > > On 30/09/12 00:09, Brett Ritter wrote: > >> agreement.  Can you po

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-10-01 Thread Alan Gauld
On 01/10/12 09:52, Oscar Benjamin wrote: I guess we won't get to find out but I assumed that the OP understood what he was doing mathematically but was struggling with the Python In retrospect I think that's true. When I posted my original reply I assumed he was new to Python and learning abo

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-10-01 Thread Oscar Benjamin
On Oct 1, 2012 12:26 AM, "Alan Gauld" wrote: > > On 30/09/12 11:50, Oscar Benjamin wrote: >> While I can write a script like the OP's in less than 5 minutes, in >> practise it takes longer to convince myself that the code is correct (if >> it is important for it to be so). I spend most of the time

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-30 Thread Alan Gauld
On 30/09/12 11:50, Oscar Benjamin wrote: ...I'm sure that the equations you're refering to would have already been using lots of symbols Yes which made them even more difficult to understand. Quantum mechanics is hard for anyone. I don't think that an alternative notation

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-30 Thread eryksun
On Sun, Sep 30, 2012 at 10:20 AM, Walter Prins wrote: > > your problem domain and hence the target audience is a group of people > where a certain set of symbols have a well established conventional > set of meanings [and hence will be quite readable to them] then I > think it's quite sensible to

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-30 Thread Walter Prins
Oscar, On 30 September 2012 11:50, Oscar Benjamin wrote: > In any case I guess you won't be pleased by my discovery that, thanks to PEP > 3131, the following is valid code in Python 3 (I've attached the code in > case it doesn't display properly): > > ''' > #!/usr/bin/env python3 > # -*- encoding

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-30 Thread eryksun
On Sun, Sep 30, 2012 at 6:50 AM, Oscar Benjamin wrote: > > In any case I guess you won't be pleased by my discovery that, thanks to PEP > 3131, the following is valid code in Python 3 (I've attached the code in > case it doesn't display properly): > > # Parameters > α = 1 > β = 0.1 > γ = 1.5 > δ =

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-30 Thread Oscar Benjamin
On 30 September 2012 09:37, Alan Gauld wrote: > On 29/09/12 23:57, Oscar Benjamin wrote: > >> On 29 September 2012 22:57, Alan Gauld > > > My point is that we should not choose short names just to keep an >> expression on a single line >> >> >> in written math too. (Most of the e

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-30 Thread Alan Gauld
On 29/09/12 23:57, Oscar Benjamin wrote: On 29 September 2012 22:57, Alan Gauld My point is that we should not choose short names just to keep an expression on a single line in written math too. (Most of the equations I remember reading from my quantum mechanics days were

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-30 Thread Alan Gauld
On 30/09/12 00:09, Brett Ritter wrote: agreement. Can you point to any of the research you mention? I'd like to read into to see how my personal experience equates with the overall study - I might learn something! I can probably dig out some references but a good place to start if you have

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-29 Thread Brett Ritter
On Sat, Sep 29, 2012 at 2:16 AM, Alan Gauld wrote: > As to using short names to keep things on a single line, there is a huge > body of research in Comp Science that shows that meaningful names outweigh > single line expressions every time in terms of reliability, comprehension, > ease of maintena

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-29 Thread Oscar Benjamin
On 29 September 2012 22:57, Alan Gauld wrote: > On 29/09/12 11:42, Steven D'Aprano wrote: > >> On 29/09/12 19:16, Alan Gauld wrote: >> > Totally agree. > My point is that we should not choose short names just to keep an > expression on a single line. The evidence suggests that the advantages of >

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-29 Thread Alan Gauld
On 29/09/12 11:42, Steven D'Aprano wrote: On 29/09/12 19:16, Alan Gauld wrote: I did say I had no idea about the original algorithm so yes, if the variable names are industry standardised and the people working with the code are familiar with them then it may be better to stick with them,

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-29 Thread Oscar Benjamin
On 28 September 2012 21:32, Jim Apto wrote: > Hello folks, > > I'm relatively new to python, and was asked to program a lotka-volterra > model (predator and prey relation) simulator. The program basically will > basically have a menu that takes user input, collect data, and then create > a graph

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-29 Thread Wayne Werner
On Sat, 29 Sep 2012, Wayne Werner wrote: On Sat, 29 Sep 2012, Oscar Benjamin wrote: On Sep 29, 2012 2:25 AM, "Alan Gauld" 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.

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-29 Thread Wayne Werner
On Sat, 29 Sep 2012, Oscar Benjamin wrote: On Sep 29, 2012 2:25 AM, "Alan Gauld" 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. > > >> x represents prey population >> y re

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-29 Thread Oscar Benjamin
On Sep 29, 2012 11:52 AM, "Steven D'Aprano" wrote: > > On 29/09/12 19:16, Alan Gauld wrote: >> >> As to using short names to keep things on a single line, there is a huge >> body of research in Comp Science that shows that meaningful names outweigh >> single line expressions every time in terms of

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-29 Thread Mark Lawrence
On 29/09/2012 11:42, Steven D'Aprano wrote: On 29/09/12 19:16, Alan Gauld wrote: On 29/09/12 09:41, Oscar Benjamin wrote: Meaningful names are vital. But short names, even single letters, are not necessarily less meaningful than longer, more descriptive names. I suspect that every experienc

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-29 Thread Steven D'Aprano
On 29/09/12 19:16, Alan Gauld wrote: On 29/09/12 09:41, Oscar Benjamin wrote: > 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

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-29 Thread Alan Gauld
On 29/09/12 09:41, Oscar Benjamin wrote: > 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: I did say

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-29 Thread Oscar Benjamin
On Sep 29, 2012 9:41 AM, "Oscar Benjamin" wrote: > > > On Sep 29, 2012 2:25 AM, "Alan Gauld" 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 wh

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-29 Thread Oscar Benjamin
On Sep 29, 2012 2:25 AM, "Alan Gauld" 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...

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-28 Thread Alan Gauld
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 popu

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-28 Thread Oscar Benjamin
On 28 September 2012 21:32, Jim Apto wrote: > Hello folks, > > I'm relatively new to python, and was asked to program a lotka-volterra > model (predator and prey relation) simulator. The program basically will > basically have a menu that takes user input, collect data, and then create > a graph

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-28 Thread Wayne Werner
On Fri, 28 Sep 2012, Jim Apto wrote: Hello folks, I'm relatively new to python, and was asked to program a lotka-volterra model (predator and prey relation) simulator.  The program basically will basically have a menu that takes user input, collect data, and then create a graph.  Currently i'v

Re: [Tutor] Lotka-Volterra Model Simulation Questions

2012-09-28 Thread Prasad, Ramit
Jim Apto wrote > Hello folks, > > I'm relatively new to python, and was asked to program a lotka-volterra model > (predator and prey relation) > simulator.  The program basically will basically have a menu that takes user > input, collect data, and then > create a graph.  Currently i've been wor