ODIN
|
#include <integration.h>
Public Member Functions | |
FunctionIntegral (const Integrand &func, unsigned int max_subintervals=1000, double error_limit=1e-7) | |
~FunctionIntegral () | |
double | get_integral (double xmin, double xmax) const |
Class which is used for integration of functions.
Definition at line 63 of file integration.h.
FunctionIntegral::FunctionIntegral | ( | const Integrand & | func, |
unsigned int | max_subintervals = 1000 , |
||
double | error_limit = 1e-7 |
||
) |
Prepare an integration of function 'func' with 'max_subintervals' at which the function will be calculated and the specified relative 'error_limit'.
FunctionIntegral::~FunctionIntegral | ( | ) |
Destructor
double FunctionIntegral::get_integral | ( | double | xmin, |
double | xmax | ||
) | const |
Returns the integral from 'xmin' to 'xmax'.