This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Can't get equations in compile time for multidimensional root finding.
- To: "pschen" <pschen at pllab dot cs dot nthu dot edu dot tw>
- Subject: Re: Can't get equations in compile time for multidimensional root finding.
- From: Brian Gough <bjg at network-theory dot co dot uk>
- Date: Mon, 3 Sep 2001 20:53:25 +0100 (BST)
- Cc: <gsl-discuss at sources dot redhat dot com>
- References: <999522083.1062.ezmlm@sources.redhat.com><000b01c13479$bd6cb5f0$874f728c@turtle>
- Reply-To: gsl-discuss at sources dot redhat dot com
pschen writes:
> It seems that I must get equations in compile time and run the
> multidimensional root finding solver. If the equations will be
> get at runtime, how can I run the multidimensional root
> finding solver? How to write the program? Anyone occur this
> problem? Thanks very much.
You can use the void * params argument to pass a pointer to the
runtime representation of your equations and evaluate it.
I believe the program 'NumExp' listed on the GSL web page
http://sources.redhat.com/gsl/ does this for 1-d equations.
regards
Brian Gough