commit | fa0e3d52d60e515beb7ae55690888d139aae205e | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Mon May 09 01:01:09 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Mon May 09 01:01:09 2011 +0200 |
tree | 0b28b5bcdd2953aa2ebe0a1fe114c2a15f229b1c | |
parent | 3de49192aa1a76e211a231f662f1926f439cae04 [diff] [blame] |
Issue #11888: Add log2 function to math module. Patch written by Mark Dickinson.
diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 98c5b33..8254d3f 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst
@@ -184,6 +184,13 @@ result is calculated in a way which is accurate for *x* near zero. +.. function:: log2(x) + + Return the base-2 logarithm of *x*. + + .. versionadded:: 3.3 + + .. function:: log10(x) Return the base-10 logarithm of *x*. This is usually more accurate