Euler-Maclaurin formula #
This lets us approximate finite sums of C^k functions with integrals, with known bounds on the
remainder.
The general formula, for real end points and a family of successive derivatives, is
EulerMaclaurin.sum_Ioc_eq_integral_add_of_hasDerivWithinAt in Interval.EulerMaclaurin.Formula,
stated with Mathlib's periodizedBernoulli. Here it is specialised to trapezoid_sum, the
trapezoidal rule with integer step size, and written with saw.
The full Euler-Maclaurin formula #
Trapezoidal sum: the trapezoidal rule for integer step size on [a, a + n]
Equations
- trapezoid_sum f a 0 = 0
- trapezoid_sum f a n.succ = trapezoid_sum f a n + 2⁻¹ • (f (↑a + ↑n) + f (↑a + ↑n + 1))
Instances For
The trapezoidal sum is the sum over the integers in (a, a + n], corrected by half the
difference of the values at the end points
The Euler-Maclaurin formula for a family of successive derivatives: F (k + 1) is a derivative
of F k within [a, a + n] for k ≤ s, and F (s + 1) is interval integrable
The Euler-Maclaurin formula