[SciPy-User] odeint

nicky van foreest vanforeest@gmail....
Sun Aug 12 14:49:25 CDT 2012


Hi Rob,

Thanks for the suggestion. I didn't think of using splines.

Nicky

On 10 August 2012 10:09, Rob Clewley <rob.clewley@gmail.com> wrote:
> Hi,
>
> On Thu, Aug 9, 2012 at 2:15 PM, nicky van foreest <vanforeest@gmail.com> wrote:
>> I am using odeint to integrate the following delay differential equation
>>
>> df/dx = c + f(x) - f(x-1)
>>
>> somewhat cumbersome. Is it possible in odeint to somehow get
>> intermediate values of the function values?
>
> Nicky, I think your easiest way ahead here is to use a spline to fit
> your previous intervals' solution function, building up your solution
> using one that meets values and first derivatives at the end points to
> retain smoothness as you go. Scipy offers several such spline tools.
> Then you can sample that to your heart's content.
>
> --
> Robert Clewley, Ph.D.
> Assistant Professor
> Neuroscience Institute and
> Department of Mathematics and Statistics
> Georgia State University
> PO Box 5030
> Atlanta, GA 30302, USA
>
> tel: 404-413-6420 fax: 404-413-5446
> http://www2.gsu.edu/~matrhc
> http://neuroscience.gsu.edu/rclewley.html
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user


More information about the SciPy-User mailing list