24 class Integral :
public std::binary_function<argument_type, argument_type, result_type>
31 result_type
operator()(first_argument_type a, first_argument_type b)
const
33 return (std::pow(b,
fN + 1) - std::pow(a,
fN + 1)) /
static_cast<result_type
>(
fN + 1);
44 result_type
operator()(argument_type x)
const {
return std::pow(x,
fN); }
PowerFunctor(int n)
Straightforward constructor.
Integral(int n)
Non-default constructor.
Nested class contains the analytic integral of the functor for testing purposes.
result_type operator()(first_argument_type a, first_argument_type b) const
The definite integral from a to b.
Utilities for the implementation of the Adaptive Quadrature.
Integral getIntegral() const
Return the analytic integral object.
result_type operator()(argument_type x) const
Evaluation operator.