summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-11-12 01:22:44 (GMT)
committerGitHub <noreply@github.com>2023-11-12 01:22:44 (GMT)
commit158a7e1acda71790f7c282949d1473d51e654d58 (patch)
tree7650506dd6f784d883320f296e0ea5c6e626269e /Python
parent13ca1f02a409a58ba86cd8247eb3e31dd21a81cf (diff)
downloadcpython-158a7e1acda71790f7c282949d1473d51e654d58.zip
cpython-158a7e1acda71790f7c282949d1473d51e654d58.tar.gz
cpython-158a7e1acda71790f7c282949d1473d51e654d58.tar.bz2
[3.12] gh-111933: fix broken link to A.Neumaier article (gh-111937) (gh-111993)
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 7f366b4..84fbc33 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -2605,7 +2605,10 @@ builtin_sum_impl(PyObject *module, PyObject *iterable, PyObject *start)
}
if (PyFloat_CheckExact(item)) {
// Improved Kahan–Babuška algorithm by Arnold Neumaier
- // https://www.mat.univie.ac.at/~neum/scan/01.pdf
+ // Neumaier, A. (1974), Rundungsfehleranalyse einiger Verfahren
+ // zur Summation endlicher Summen. Z. angew. Math. Mech.,
+ // 54: 39-51. https://doi.org/10.1002/zamm.19740540106
+ // https://en.wikipedia.org/wiki/Kahan_summation_algorithm#Further_enhancements
double x = PyFloat_AS_DOUBLE(item);
double t = f_result + x;
if (fabs(f_result) >= fabs(x)) {