27#ifndef quantlib_piecewise_integral_hpp
28#define quantlib_piecewise_integral_hpp
30#include <ql/math/integrals/integral.hpp>
31#include <ql/math/comparison.hpp>
32#include <ql/shared_ptr.hpp>
41 std::vector<Real> criticalPoints,
42 bool avoidCriticalPoints =
true);
96 for (
auto x = a0; x < b0; ++x) {
Real integrate_h(const ext::function< Real(Real)> &f, Real a, Real b) const
Real integrate(const ext::function< Real(Real)> &f, Real a, Real b) const override
std::vector< Real > criticalPoints_
const ext::shared_ptr< Integrator > integrator_
bool close_enough(const Quantity &m1, const Quantity &m2, Size n)