32 static typename Ftor::result_type
sum(
typename Ftor::argument_type l,
typename Ftor::argument_type d, Ftor f)
37 const Arg h{
static_cast<Arg
>(0.5) * d};
39 return static_cast<Res
>(0.333333333333333) * h * (f(l) +
static_cast<Res
>(4.0) * f(l + h) + f(r));
Utilities for the implementation of the Adaptive Quadrature.
typename std::remove_cv< typename std::remove_reference< T >::type >::type type
static Ftor::result_type sum(typename Ftor::argument_type l, typename Ftor::argument_type d, Ftor f)
Execute the rule on the cell.