This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: negative absolute error given by qag?
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Francisco J Molina <FJMolina at lbl dot gov>
- Cc: gsl-discuss at sources dot redhat dot com, fjmolina at lbl dot go
- Date: Wed, 1 May 2002 21:49:26 +0100 (BST)
- Subject: Re: negative absolute error given by qag?
- References: <3CCF1B47.3FE2F052@lbl.gov>
Francisco J Molina writes:
> I am using the function
> gsl_integration_qag
> Is it possible that this function returns an absolute error (
> abserr ) that is negative.
> I have been reading the code of qag.c and that seems to be the
> case.
> Anyone could confirm this?
Hi,
Negative errors shouldn't occur under normal usage, so if you
encounter any negative errors please send a bug report. Thanks.
> How can I avoid a message of this type:
> gsl: qag.c:257: ERROR: maximum number of subdivisions reached
> I am know in the world of C++. Does anyone which is the basic tool
> in C++ to handle exceptions/errors?
You can use the function gsl_set_error_handler_off() at the beginning
of your program, and then the return status of gsl functions for
errors.
regards
Brian Gough