25#ifndef quantlib_segment_integral_h
26#define quantlib_segment_integral_h
71 Real end =
b - 0.5*dx;
72 for (
Real x = a+dx; x < end; x += dx)
Integral of a one-dimensional function.
Real integrate(const ext::function< Real(Real)> &f, Real a, Real b) const override
floating-point comparisons
Classes and functions for error handling.
ext::function< Real(Real)> b
std::size_t Size
size of a container
Integrators base class definition.
bool close_enough(const Quantity &m1, const Quantity &m2, Size n)