#include <gen_inte.h>
Perform the generalized multi-dimensional integral:
The functions and
are specified in the arguments
a
and b
to the function ginteg() or ginteg_err() .
In order to allow the user to specify only three functions (for the integrand, the lower limits, and the upper limits) the first argument to the limit and integrand functions is used to distinguish among the limits for each separate integral. So first argument to a
for is 0, and the first argument to
a
for is 1, etc., and similarly for the upper limits specified in
b
and the integrands specified in func
.
At present, the only implementation of this abstract base is in comp_gen_inte .
Definition at line 59 of file gen_inte.h.
Public Member Functions | |
virtual double | ginteg (func_t &func, size_t ndim, lfunc_t &a, ufunc_t &b, param_t &pa)=0 |
Integrate function func from ![]() ![]() ![]() | |
virtual int | ginteg_err (func_t &func, size_t ndim, lfunc_t &a, ufunc_t &b, param_t &pa, double &res, double &err) |
Integrate function func from ![]() ![]() ![]() | |
double | get_error () |
Return the error in the result from the last call to ginteg() or ginteg_err(). | |
const char * | type () |
Return string denoting type ("gen_inte"). | |
Data Fields | |
int | verbose |
Verbosity. | |
double | tolf |
The maximum "uncertainty" in the value of the integral. | |
bool | err_nonconv |
If true, call the error handler if the routine does not "converge". | |
Protected Attributes | |
double | interror |
The uncertainty for the last integration computation. |
double get_error | ( | ) | [inline] |
Return the error in the result from the last call to ginteg() or ginteg_err().
This will quietly return zero if no integrations have been performed.
Definition at line 109 of file gen_inte.h.
virtual double ginteg | ( | func_t & | func, | |
size_t | ndim, | |||
lfunc_t & | a, | |||
ufunc_t & | b, | |||
param_t & | pa | |||
) | [pure virtual] |
Integrate function func
from to
for
.
virtual int ginteg_err | ( | func_t & | func, | |
size_t | ndim, | |||
lfunc_t & | a, | |||
ufunc_t & | b, | |||
param_t & | pa, | |||
double & | res, | |||
double & | err | |||
) | [inline, virtual] |
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