[SciPy-user] integrate.odeint and simultaniuos equations
Tue Jan 20 06:34:01 CST 2009
Do ode and odeint work in multiple dimensions?
I could not any examples with more than one degree of freedom. And from the doc string it how to solve simultaneous ode's was not obvious. The code for modelling a 2d simple harmonic oscillator or spherical pendulum would give me the insight I need.
I found and understand the following 1 D harmonic oscillator model from the scipy cookbook.
from scipy import *
from pylab import *
deriv = lambda y,t : array([y,-y-.1*y])#xdot,x2dot
# Integration parameters
from scipy import integrate
More information about the SciPy-user