Jean Brouwers <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue2819> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com