This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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  



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]