#include <gen_inte.h>
In order to allow the user to specify only three functions (for the integrand, the lower limits, and the upper limits) the first integer variable is used to distinguish among the variable limits. So the function is just lower(0,NULL,vp) where vp is a void pointer, the function
is lower(1,x,vp) where x is a 1-dimensional vector, and the function
is lower(i,x,vp) where x is an i-dimensional vector. Similarly, the function
is upper(i,x,vp) where x is an i-dimensional vector.
Definition at line 44 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. | |
Protected Attributes | |
double | interror |
The uncertainty for the last integration computation. |
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] |
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 90 of file gen_inte.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