| 1 | initial version |
The command desolve_odeint only accepts the vector field $\mathbf{F}$ for the differential equation $$\dfrac{d \mathbf{F}}{d\mathbf{x}} = \mathbf{F}(\mathbf{x}).$$ You are giving it the whole differential equation.
| 2 | No.2 Revision |
The command desolve_odeint only accepts the vector field $\mathbf{F}$ for the differential equation $$\dfrac{d $$\frac{d \mathbf{F}}{d\mathbf{x}} = \mathbf{F}(\mathbf{x}).$$ You are giving it the whole differential equation.
| 3 | No.3 Revision |
The command desolve_odeint only accepts the vector field $\mathbf{F}$ for the differential equation $$\frac{d \mathbf{F}}{d\mathbf{x}} \mathbf{F}}{dt} = \mathbf{F}(\mathbf{x}).$$ You are giving it the whole differential equation.
| 4 | No.4 Revision |
The command desolve_odeint only accepts the vector field $\mathbf{F}$ for the differential equation $$\frac{d \mathbf{F}}{dt} = \mathbf{F}(\mathbf{x}).$$ You are giving it the whole differential equation.
Here is an example of solving the predator-prey model $$\frac{dx}{dt} = 0.2 x-0.3 x y, \frac{dy}{dt} = -0.1 y+0.3 x y $$
var('t,x,y')
F=[0.2*x-0.3*x*y,-0.1*y+0.3*x*y]
ans=desolve_odeint(F,[1,1],srange(0,100,0.01),[x,y])
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.