[issue2819] Full precision summation

Jean Brouwers report at bugs.python.org
Sun May 11 18:16:53 CEST 2008


New submission from Jean Brouwers <MrJean1 at Gmail.com>:

Attached are 2 patches and a test script adding a function sum to the 
math and cmath modules of Python 2.6a3.  The sum is calculated using a 
full precision summation method.

The test script compares the result of the functions with the original 
implementation in Python.  All tests pass with 4 different builds of 
Python 2.6a3:

- GNU gcc 4.0.1 on MacOS X 10.4.11 (Intel Core Duo), 32-bit
- GNU gcc 4.1.2 on RHEL 3 update 7 (Opteron), 64-bit
- Sun C 5.8 on Solaris 10 (Opteron), both 32- and 64-bit

----------
components: Extension Modules
files: cmathmodule.c.2.6a3.diff
keywords: patch
messages: 66641
nosy: MrJean1, rhettinger
severity: normal
status: open
title: Full precision summation
type: performance
versions: Python 2.6
Added file: http://bugs.python.org/file10285/cmathmodule.c.2.6a3.diff

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2819>
__________________________________


More information about the Python-bugs-list mailing list