[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] ODE solver
From: |
Frank Reininghaus |
Subject: |
Re: [Help-gsl] ODE solver |
Date: |
Wed, 23 Apr 2008 09:55:33 +0200 |
Hi Lukasz,
I'm not sure if I understand what you mean by "I cannot explicitly put
an array in the ODE system definition". I guess that you want the
right hand side of the ODE to depend not only on the time t, but also
on an array of doubles? You can do that using the 'params' argument of
the function which is of type 'void *' and can point to anything, see
the attached example.
Regards,
Frank
2008/4/23, address@hidden <address@hidden>:
> Does anyone know how can I represent pulsed stimuli in ODEs system
> definition. I need the driving term in the equation be the function of time,
> and have the form of a rectangular pulse. The problem is, I cannot explicitly
> put an array in the ODE system definition. Is there any way to do it?
> Best,
> Lukasz
testi.c
Description: Text Data