|
Group of utility functions for numerical integration.
More...
|
typedef double(* | Elegent::RealFunction) (double x, double *par, const void *obj) |
| Represents a real function of real variable. More...
|
|
typedef TComplex(* | Elegent::ComplexFunction) (double x, double *par, const void *obj) |
| Represents a complex function of real variable.
|
|
|
double | Elegent::RealIntegrate (RealFunction fcn, double *par, const void *object, double from, double to, double abs_err, double rel_err, unsigned long work_space_size, gsl_integration_workspace *work_space, const char *errorLabel="") |
| Integration of a real function of a real variable. More...
|
|
TComplex | Elegent::ComplexIntegrate (ComplexFunction fcn, double *par, const void *object, double from, double to, double abs_err, double rel_err, unsigned long work_space_size, gsl_integration_workspace *work_space, const char *errorLabel="") |
| Integration of a complex function of a real variable.
|
|
double | Elegent::RealIntegFcn (double x, void *vpar) |
| Evaluates a given real function with a given parameter set.
|
|
double | Elegent::OneCompIntegFcn (double x, void *par) |
| Evaluates a given part of a give complex function with a given parameter set.
|
|
Group of utility functions for numerical integration.
typedef double(* Elegent::RealFunction) (double x, double *par, const void *obj) |
Represents a real function of real variable.
- Parameters
-
x | is the integration variable |
par | is intended for additional numerical parameters |
obj | is inteded for an object pointer |
double Elegent::RealIntegrate |
( |
RealFunction |
fcn, |
|
|
double * |
par, |
|
|
const void * |
object, |
|
|
double |
from, |
|
|
double |
to, |
|
|
double |
abs_err, |
|
|
double |
rel_err, |
|
|
unsigned long |
work_space_size, |
|
|
gsl_integration_workspace * |
work_space, |
|
|
const char * |
errorLabel = "" |
|
) |
| |
Integration of a real function of a real variable.
- Parameters
-
fcn | function to integrate |
par | optional numerical parameters |
object | optional object parameter |
from | lower integration bound |
to | upper integration bound |
abs_err | requested absolute error on the result |
rel_err | requested relative error on the result |
work_space_size | size to GSL integration workspace |
work_space | pointer to GSL integration workspace |
errorLabel | caption of (possible) error messages |
bool Elegent::abortOnIntegrationError = false |
Abort when integration error occurs?
false by default
|