[issue1381] cmath is numerically unsound

Mark Dickinson report at bugs.python.org
Sat Jan 5 01:25:28 CET 2008


Mark Dickinson added the comment:

Here's an updated patch for cmath, complete with tests and documentation changes.
There's an extra file, Lib/test/cmath.ctest, containing test values for the various functions;  
these test values were obtained using MPFR and interval arithmetic, and (modulo bugs) should 
all be correctly rounded.

Any feedback would be much appreciated.

Added file: http://bugs.python.org/file9065/cmath3.patch

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


More information about the Python-bugs-list mailing list