Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help modelling an ordinary differential equation
#1
I am completely new to computer modelling but I need to model bacterial growth for a project.
I found a simple example online which I have seen work on a mac. However, when I try to code it on my windows pc I get stuck at the point after I type r = integrate.odeint(f, y0, t, args=(k, alpha)) because an error message comes up saying:

Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
r = integrate.odeint(f, y0, t, args=(k, alpha))
NameError: name 'f' is not defined

Please could anyone with a pc run this model and tell me where I am going wrong?
The example can be found here: http://lister.dulci.duhs.duke.edu/~clibu...odels.html

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)