diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-08 23:01:09 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-08 23:01:09 (GMT) |
commit | fa0e3d52d60e515beb7ae55690888d139aae205e (patch) | |
tree | 0b28b5bcdd2953aa2ebe0a1fe114c2a15f229b1c /Doc/library/math.rst | |
parent | 3de49192aa1a76e211a231f662f1926f439cae04 (diff) | |
download | cpython-fa0e3d52d60e515beb7ae55690888d139aae205e.zip cpython-fa0e3d52d60e515beb7ae55690888d139aae205e.tar.gz cpython-fa0e3d52d60e515beb7ae55690888d139aae205e.tar.bz2 |
Issue #11888: Add log2 function to math module. Patch written by Mark
Dickinson.
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r-- | Doc/library/math.rst | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ Power and logarithmic functions 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 |