[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
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
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.