[issue3366] Add gamma function, error functions and other C99 math.h functions to math module
Mark Dickinson
report at bugs.python.org
Mon Sep 21 15:04:32 CEST 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
Thanks! The patch is against the trunk. (It doesn't quite apply cleanly
to py3k, but the changes needed to make it do so should be minimal.)
Hmm. Rereading my previous comment, I seem to have a blindness for
negative signs:
gamma(x) = -pi/sinpi(x)/x/gamma(x)
should have been
gamma(-x) = -pi/sinpi(x)/x/gamma(x)
and
(-256.0, 1/256.0] + [1/256.0, 256.0)
should have been
(-256.0, -1/256.0] + [1/256.0, 256.0)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3366>
_______________________________________
More information about the Python-bugs-list
mailing list