16 double f2(
const double *
x) {
21 os <<
"Test of " << type <<
"\t: \t";
22 if (!status) os <<
"OK" << std::endl;
24 os << std::endl << std::endl;
30 const double RESULT = 0.5;
38 std::cout <<
"GSL adaptive sing. integral result is \t" << val << std::endl;
44 std::cout <<
"GSL non-adaptiveintegral result is \t" << val << std::endl;
49 std::cout <<
"GSL adaptive integral result is \t" << val << std::endl;
56 std::cout <<
"Cernlib Gauss integral result is \t" << val << std::endl;
62 std::cout <<
"Gauss-Legendre integral result is \t" << val << std::endl;
71 const double RESULT = 1.0;
81 std::cout <<
"Cernlib Adaptive integral result is " << val << std::endl;
87 std::cout <<
"GSL VEGAS integral result is " << val << std::endl;
92 std::cout <<
"GSL PLAIN integral result is " << val << std::endl;
97 std::cout <<
"GSL MISER integral result is " << val << std::endl;
void printTestResult(std::ostream &os, const char *type, int status)
Documentation for class Functor class.
double Integral(const double *xmin, const double *xmax)
evaluate the integral with the previously given function between xmin[] and xmax[] ...
void SetFunction(Function &f, unsigned int dim)
set integration function using a generic function implementing the operator()(double *x) The dimensio...
double Integral(Function &f, double a, double b)
evaluate the Integral of a function f over the defined interval (a,b)
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)
User Class for performing numerical integration of a function in one dimension.
int testIntegrationMultiDim()
void SetFunction(Function &f)
method to set the a generic integration function
User class for performing multidimensional integration.
double f2(const double *x)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Functor1D class for one-dimensional functions.