![]() |
Object-oriented Scientific Computing Library: Version 0.910
|
Base integration class [abstract base]. More...
#include <inte.h>
Public Member Functions | |
virtual double | integ (func_t &func, double a, double b) |
Integrate function func from a to b . | |
virtual int | integ_err (func_t &func, double a, double b, double &res, double &err)=0 |
Integrate function func from a to b and place the result in res and the error in err . | |
double | get_error () |
Return the numerically estimated error in the result from the last call to integ() | |
virtual const char * | type () |
Return string denoting type ("inte") | |
Data Fields | |
int | verbose |
Verbosity. | |
size_t | last_iter |
The most recent number of iterations taken. | |
double | tol_rel |
The maximum relative uncertainty in the value of the integral (default ![]() | |
double | tol_abs |
The maximum absolute uncertainty in the value of the integral (default ![]() | |
bool | err_nonconv |
If true, call the error handler if the routine does not converge or reach the desired tolerance (default true) | |
int | last_conv |
Integer indicating convergence properties of the last call to integ() or integ_err(). | |
Protected Attributes | |
double | interror |
The uncertainty for the last integration computation. |
double inte< func_t >::get_error | ( | ) | [inline] |
bool inte< func_t >::err_nonconv |
This is zero if the last call to integ() or integ_err() converged successfully. This variable is particularly useful, in combination with setting err_nonconv to false, to test for non-convergence without calling the error handler.
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).