Changes between Version 2 and Version 3 of OdeintRedesign
- Timestamp:
- 04/12/09 10:53:44 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OdeintRedesign
v2 v3 19 19 2. One wrapper function `odeint` (or something similar) with a suitable keyword argument. 20 20 21 == Use cases == 22 23 === Integrate a simple ODE === 24 25 {{{ 26 import numpy as np 27 from scipy.integrate import vode 28 29 def f(t,y): 30 return -2*y + np.array([np.cos(t),0,0]) 31 32 t = np.linspace(0, 20, 200) 33 y = np.vode(f, t=t, y0=[0,1,2]) 34 }}} 35 21 36 == Related == 22 37
