English

An alternative to the Euler--Maclaurin formula: Approximating sums by integrals only

Classical Analysis and ODEs 2017-07-26 v7 Numerical Analysis

Abstract

The Euler--Maclaurin (EM) summation formula is used in many theoretical studies and numerical calculations. It approximates the sum k=0n1f(k)\sum_{k=0}^{n-1} f(k) of values of a function ff by a linear combination of a corresponding integral of ff and values of its higher-order derivatives f(j)f^{(j)}. An alternative (Alt) summation formula is proposed, which approximates the sum by a linear combination of integrals only, without using high-order derivatives of ff. Explicit and rather easy to use bounds on the remainder are given. Possible extensions to multi-index summation are suggested. Applications to summing possibly divergent series are presented. It is shown that the Alt formula will in most cases outperform, or greatly outperform, the EM formula in terms of the execution time and memory use. One of the advantages of the Alt calculations is that, in contrast with the EM ones, they can be almost completely parallelized. Illustrative examples are given. In one of the examples, where an array of values of the Hurwitz generalized zeta function is computed with high accuracy, it is shown that both our implementation of the EM formula and, especially, the Alt formula perform much faster than the built-in Mathematica command HurwitzZeta[].

Keywords

Cite

@article{arxiv.1511.03247,
  title  = {An alternative to the Euler--Maclaurin formula: Approximating sums by integrals only},
  author = {Iosif Pinelis},
  journal= {arXiv preprint arXiv:1511.03247},
  year   = {2017}
}

Comments

Version 5: Added application to summing possibly divergent series, easy bounds on remainders, discussion of parallelization and memory use, more comparisons with Euler--Maclaurin (and now also with Mathematica and Richardson's extrapolation). Version 6: fixed a few typos. Version 7: removed the restriction n\ge m-1 in Th. 3.1

R2 v1 2026-06-22T11:41:50.513Z