[issue11888] Add C99's log2() function to the math library
Mark Dickinson
report at bugs.python.org
Mon May 9 14:20:14 CEST 2011
Mark Dickinson <dickinsm at gmail.com> added the comment:
One other thought: we should check that it's not pow that's at fault here, rather than log2. The test uses math.log2(2.0**n). It would probably be better off using math.log2(ldexp(1.0, n)), or similar: the libm pow operation is also notorious for inaccuracies (due to poor implementations or otherwise) on various platforms.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11888>
_______________________________________
More information about the Python-bugs-list
mailing list