gsl_inte_qng Class Template Reference

#include <gsl_inte_qng.h>

Inheritance diagram for gsl_inte_qng:

inte gsl_inte

Detailed Description

template<class param_t, class func_t>
class gsl_inte_qng< param_t, func_t >

Non-adaptive integration from a to b (GSL).

integ() uses 10-point, 21-point, 43-point, and 87-point Gauss-Kronrod integration successively until the integral is returned within the accuracy specified by tolx and tolf.

Definition at line 224 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.

Field Documentation

size_t feval

The number of function evalutions for the last integration.

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 set to 88.

Definition at line 239 of file gsl_inte_qng.h.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page