25double f2(
const double *
x) {
29int mathmoreIntegrationMultidim() {
31 const double RESULT = 1.0;
32 const double ERRORLIMIT = 1
E-3;
41 double val = ig.Integral(
a,
b);
42 std::cout <<
"integral result is " << val << std::endl;
43 status += std::fabs(val-RESULT) > ERRORLIMIT;
47 val = ig2.Integral(
a,
b);
48 std::cout <<
"integral result is " << val << std::endl;
49 status += std::fabs(val-RESULT) > ERRORLIMIT;
52 val = ig3.Integral(
a,
b);
53 std::cout <<
"integral result is " << val << std::endl;
54 status += std::fabs(val-RESULT) > ERRORLIMIT;
57 val = ig4.Integral(
a,
b);
58 std::cout <<
"integral result is " << val << std::endl;
59 status += std::fabs(val-RESULT) > ERRORLIMIT;
Documentation for class Functor class.
User class for performing multidimensional integration.
@ kADAPTIVE
adaptive multi-dimensional integration
constexpr Double_t E()
Base of natural log: .