#include <gsl_inte_qng.h>
The error handler is called if the 87-point integration fails to produce the desired accuracy. If inte::err_nonconv is false (the default is true), then the error handler is never called and when the desired accuracy is not obtained the result of the 87-point integration is returned along with the associated error.
The return value of the function to be integrated is ignored.
Definition at line 240 of file gsl_inte_qng.h.
Public Member Functions | |
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 giving result res and error err . | |
const char * | type () |
Return string denoting type ("gsl_inte_qng"). | |
Data Fields | |
size_t | feval |
The number of function evalutions for the last integration. |
virtual int integ_err | ( | func_t & | func, | |
double | a, | |||
double | b, | |||
param_t & | pa, | |||
double & | res, | |||
double & | err2 | |||
) | [inline, virtual] |
Implements inte.
Definition at line 270 of file gsl_inte_qng.h.
size_t feval |
Set to either 0, 21, 43, or 87, depending on the number of function evaluations that were used. This variable is zero if an error occurs before any function evaluations were performed and is never equal 10, since in the 10-point method, the 21-point result is used to estimate the error. If the function fails to achieve the desired precision, feval is 87.
Definition at line 255 of file gsl_inte_qng.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