Skip to content

Commit 158a7e1

Browse files
[3.12] gh-111933: fix broken link to A.Neumaier article (gh-111937) (gh-111993)
1 parent 13ca1f0 commit 158a7e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Python/bltinmodule.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2605,7 +2605,10 @@ builtin_sum_impl(PyObject *module, PyObject *iterable, PyObject *start)
26052605
}
26062606
if (PyFloat_CheckExact(item)) {
26072607
// Improved Kahan–Babuška algorithm by Arnold Neumaier
2608-
// https://www.mat.univie.ac.at/~neum/scan/01.pdf
2608+
// Neumaier, A. (1974), Rundungsfehleranalyse einiger Verfahren
2609+
// zur Summation endlicher Summen. Z. angew. Math. Mech.,
2610+
// 54: 39-51. https://doi.org/10.1002/zamm.19740540106
2611+
// https://en.wikipedia.org/wiki/Kahan_summation_algorithm#Further_enhancements
26092612
double x = PyFloat_AS_DOUBLE(item);
26102613
double t = f_result + x;
26112614
if (fabs(f_result) >= fabs(x)) {

0 commit comments

Comments
 (0)