[issue2819] Full precision summation
Jean Brouwers
report at bugs.python.org
Sun May 18 21:25:39 CEST 2008
Jean Brouwers <MrJean1 at Gmail.com> added the comment:
Attached is the patch for the the mathmodule.c file of Python 2.6a3
containing the C version of the msum() function from Marks's msum4.py
Python implementation.
Please review the C code, in particular the setting of _do_sum_pow_2 for
FLT_RADIX not equal to 2.
The results of the C and Python versions match (on 32-bit MacOS X
Intel), using the test_math_sum4.py script. That includes all the tests
from msum4.py and from Raymond's recipe.
More testing and the cmath version are still to be done.
/Jean Brouwers
Added file: http://bugs.python.org/file10364/mathmodule4.c.2.6a3.diff
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2819>
__________________________________
More information about the Python-bugs-list
mailing list