This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Multiple parameters in ODEs
- From: Slaven Peles <peles at cns dot physics dot gatech dot edu>
- To: "Fleur Kelpin" <fleur at guppie dot xs4all dot nl>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Fri, 12 Apr 2002 13:43:39 -0500
- Subject: Re: Multiple parameters in ODEs
- References: <E16XqRM-0001aA-00@kaos.physics.gatech.edu> <E16w5eu-0005iF-00@kaos.physics.gatech.edu> <001601c1e24f$cea38040$9600000a@guppie>
Thanks for the quick reply. Now, there is my follow-up question: In case I
put all of my parameters in an array, is it possible to give a distinctive
names to members of the array mu? It is kind of difficult to keep track of
all the parameters if they are mu[0], m[1], etc. The only thing I can think
of is to do something like this:
#define Dissipation 0
#define Frequency 1
.............
and then to write mu[Dissipation], mu[Frequency],... I was just wondering if
this is original idea for assigning multiple parameter values or there is
some better solution GSL developers had in mind?
Cheers,
Slaven
On Friday 12 April 2002 02:28 pm, you wrote:
> You'll want to pass a pointer to an array containing the parameters,
> double* mu
>
> ----- Original Message -----
> From: "Slaven Peles" <peles@cns.physics.gatech.edu>
> To: <gsl-discuss@sources.redhat.com>
> Sent: Friday, April 12, 2002 8:20 PM
> Subject: Multiple parameters in ODEs
>
> > Hi,
> >
> > I would like to know what is the _recommended_ way to define multiple
> > parameters in a system of ODEs? Let me refer to the example in the
>
> reference
>
> > manual: In case I have more than one parameter for Van der Pol equation,
> > should I define 'mu' as an array or a structure or do it some other way?
> > Also, if somebody has a nice example for this please send it to the list.
> >
> > Many thanks,
> > Slaven