This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: ODEs - runge kutta
- From: Fleur Kelpin <fleur at bio dot vu dot nl>
- To: Sam Halliday <plendily at hotmail dot com>
- Cc: peles at cns dot physics dot gatech dot edu, <gsl-discuss at sources dot redhat dot com>
- Date: Fri, 22 Feb 2002 11:56:14 +0100 (MET)
- Subject: Re: ODEs - runge kutta
Hi Sam,
>From the example (but also in the manual):
int
func (double t, const double y[], double f[],
void *params)
The first function argument is t, the time of evaluation. So you don't
want to add t to your parameters (I am not so sure that that would even
work), as it is already provided to func.
Since you will be the only one accessing param, you may leave param empty
if you have no other parameters. So that would mean:
gsl_odeiv_system sys = {func, jac, 2, 0};
Hope this helps,
Fleur
> the parameter 'mu' which is set in
> the example to 10.... i would like to set this to the value of 't' at that
> moment, how should i do this?