Re: [Python-Dev] Rewrite of cmath module?

2007-03-18 Thread Tim Peters
[Mark Dickinson] The current cmath module has some significant numerical problems, particularly in the inverse trig and inverse hyperbolic trig functions. IIRC, cmath was essentially whipped up over a weekend by a scientist, transcribing formulas from a math reference. Such an approach is

[Python-Dev] Rewrite of cmath module?

2007-03-17 Thread Mark Dickinson
The current cmath module has some significant numerical problems, particularly in the inverse trig and inverse hyperbolic trig functions. I've listed a few of these below, but for now I'll just note the following upsetting result: asin(-1e8) Traceback (most recent call last): File stdin, line

Re: [Python-Dev] Rewrite of cmath module?

2007-03-17 Thread Aahz
On Sun, Mar 18, 2007, Mark Dickinson wrote: I'm wondering whether anyone would be interested in a rewrite of the cmath module. In theory, yes, but my observations of past discussions have been that they tend to founder on the issues of cross-platform support and long-term code maintenance.