#include <inte.h>
Definition at line 35 of file inte.h.
Public Member Functions | |
inte () | |
virtual | ~inte () |
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 &err) |
Integrate function func from a to b and place the result in res and the error in err . | |
double | get_error () |
Return the error in the result from the last call to integ(). | |
virtual const char * | type () |
Return string denoting type ("inte"). | |
Data Fields | |
int | verbose |
Verbosity. | |
double | tolf |
The maximum relative uncertainty in the value of the integral (default ![]() | |
double | tolx |
The maximum absolute uncertainty in the value of the integral (default ![]() | |
Protected Attributes | |
double | interror |
The uncertainty for the last integration computation. |
virtual int integ_err | ( | func_t & | func, | |
double | a, | |||
double | b, | |||
param_t & | pa, | |||
double & | res, | |||
double & | err | |||
) | [inline, virtual] |
Integrate function func
from a
to b
and place the result in res
and the error in err
.
Ideally, if this function succeeds, then err
should be less than or close to tolf.
Reimplemented in cern_adapt, cern_cauchy, cern_gauss, cern_gauss56, gsl_inte_qag, gsl_inte_qagi, gsl_inte_qagil, gsl_inte_qagiu, gsl_inte_qags, gsl_inte_qawc, gsl_inte_qawf_sin, gsl_inte_qawf_cos, gsl_inte_qawo_sin, gsl_inte_qawo_cos, gsl_inte_qaws, and gsl_inte_qng.
double get_error | ( | ) | [inline] |