#include <gsl_inte_qag.h>
The number of subdivisions of the original interval which this class is allowed to make is dictated by the workspace size for the integration class, which can be set using gsl_inte_table::set_wkspace() .
There are a few possible normal errors:
Iteration limit exceeds workspace in gsl_inte_qag::qag().
- gsl_einvalTolerance cannot be achieved with given value of 'tolx' and 'tolf' in gsl_inte_qag::qag().
- gsl_ebadtolCannot reach tolerance because of roundoff error on first attempt in gsl_inte_qag::qag().
- gsl_eroundCould not integrate function in gsl_inte_qag::qag() (it may have returned a non-finite result).
- gsl_efailedThere are also a few convergence errors which will not be called if inte::err_nonconv is false (the default is true)
A maximum of 1 iteration was insufficient in gsl_inte_qag::qag().
- gsl_emaxiterBad integrand behavior in gsl_inte_qag::qag().
- gsl_esingMaximum number of subdivisions 'value' reached in gsl_inte_qag::qag().
- gsl_emaxiter
Definition at line 85 of file gsl_inte_qag.h.
Public Member Functions | |
gsl_inte_qag (int key=1) | |
Create an integrator with the specified key. | |
int | set_key (int key) |
Set the number of integration points. | |
int | get_key () |
Return the current value of the key being used used (1-6). | |
virtual double | integ (func_t &func, double a, double b, param_t &pa) |
Integrate function func from a to b . | |
virtual int | integ_err (func_t &func, double a, double b, param_t &pa, double &res, double &err2) |
Integrate function func from a to b and place the result in res and the error in err . | |
const char * | type () |
Return string denoting type ("gsl_inte_qag"). | |
Protected Member Functions | |
int | qag (func_t &func, const int qn, const double xgk[], const double wg[], const double wgk[], double fv1[], double fv2[], const double a, const double b, const double l_epsabs, const double l_epsrel, const size_t limit, double *result, double *abserr, param_t &pa) |
Perform an adaptive integration given the coefficients, and returning result . | |
Protected Attributes | |
int | lkey |
Select the number of integration points. |
int set_key | ( | int | key | ) | [inline] |
Set the number of integration points.
The possible values for key
are:
If an integer other than 1-6 is given, the default (GSL_INTEG_GAUSS15) is assumed, and the error handler is called.
Definition at line 123 of file gsl_inte_qag.h.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page