Re: [Tutor] System of ODEs Question

2011-02-03 Thread Eike Welk
Hello Eric! On Thursday 03.02.2011 08:05:13 Eric Lofgren wrote: > def eq_system(PopIn,x): > '''Defining SIR System of Equations''' > #Creating an array of equations > Eqs= np.zeros((3)) > Eqs[0]= -beta * PopIn[0]*PopIn[1] > Eqs[1]= beta * PopIn[0]*PopIn[1] - gamma*PopIn[1] >

[Tutor] System of ODEs Question

2011-02-02 Thread Eric Lofgren
So I'm in the process of learning Python, and have been working on a program to solve a very simple S-I-R model, used to study infectious diseases. Basically, it's just a smallish set of differential equations which need to be numerically integrated over time. Working off of a template program,