Skip to content

Commit 56272a8

Browse files
skirpichevaisk
authored andcommitted
pythongh-111933: fix broken link to A.Neumaier article (pythongh-111937)
1 parent 824fd6d commit 56272a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Python/bltinmodule.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -2611,7 +2611,10 @@ builtin_sum_impl(PyObject *module, PyObject *iterable, PyObject *start)
26112611
}
26122612
if (PyFloat_CheckExact(item)) {
26132613
// Improved Kahan–Babuška algorithm by Arnold Neumaier
2614-
// https://www.mat.univie.ac.at/~neum/scan/01.pdf
2614+
// Neumaier, A. (1974), Rundungsfehleranalyse einiger Verfahren
2615+
// zur Summation endlicher Summen. Z. angew. Math. Mech.,
2616+
// 54: 39-51. https://doi.org/10.1002/zamm.19740540106
2617+
// https://en.wikipedia.org/wiki/Kahan_summation_algorithm#Further_enhancements
26152618
double x = PyFloat_AS_DOUBLE(item);
26162619
double t = f_result + x;
26172620
if (fabs(f_result) >= fabs(x)) {

0 commit comments

Comments
 (0)