This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
1-d roots (error handling)
- From: "Peter S. Christopher" <peterc at midway dot uchicago dot edu>
- To: gsl-discuss at sources dot redhat dot com
- Date: Mon, 30 Dec 2002 10:34:48 -0600 (CST)
- Subject: 1-d roots (error handling)
Hi list,
I'm using brents algorithm to find one dimensional roots, although
I don't think my question is restricted to brents algo. In the multi-root
package, the user defined function can return GSL_FAILURE to indicate to
the solver that a critical error has occurred. Then the solver returns an
appropriate error code. Can this be done with the one-d root
algorithms? The current interface has the 1-d user defined function
returning a double; if I return GSL_NAN from my user defined will the the
solver handle that like a critical error? Should it handle this like a
critical error?
Thanks in advance,
Pete Christopher