[New-bugs-announce] [issue11888] Add C99's log2() function to the math library

Raymond Hettinger report at bugs.python.org
Wed Apr 20 17:58:52 CEST 2011


New submission from Raymond Hettinger <raymond.hettinger at gmail.com>:

The three most popular logarithm bases are 10, e, and 2.  The math library has direct function calls for the first two but not the latter which is important in informatics.

Since a direct call can use a custom algorithm or native hardware support (such as the FLDLN2 fpu instruction), it provides better speed and accuracy than our existing math.log(x, 2) option.

----------
assignee: mark.dickinson
messages: 134159
nosy: mark.dickinson, rhettinger
priority: normal
severity: normal
status: open
title: Add C99's log2() function to the math library
type: feature request
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11888>
_______________________________________


More information about the New-bugs-announce mailing list