#include <integration.h>
Public Member Functions | |
| virtual double | evaluate (double x) const=0 |
| double | get_integral (double xmin, double xmax, unsigned int max_subintervals=1000, double error_limit=1e-7) const |
Protected Member Functions | |
| Integrand () | |
| virtual | ~Integrand () |
Definition at line 34 of file integration.h.
| virtual double Integrand::evaluate | ( | double | x | ) | const [pure virtual] |
Returns the function value at position 'x'.
| double Integrand::get_integral | ( | double | xmin, | |
| double | xmax, | |||
| unsigned int | max_subintervals = 1000, |
|||
| double | error_limit = 1e-7 | |||
| ) | const |
Returns the integral from 'xmin' to 'xmax'. Integration is performed with 'max_subintervals' at which the function will be calculated and the specified relative 'error_limit'.
1.5.1