summaryrefslogtreecommitdiffstats
path: root/Doc/library/math.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r--Doc/library/math.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index 797f324..9da22b6 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -393,13 +393,12 @@ Power and logarithmic functions
.. versionadded:: 3.2
-.. function:: log(x[, base])
+.. function:: log(x, base=None)
- With one argument, return the natural logarithm of *x* (to base *e*).
-
- With two arguments, return the logarithm of *x* to the given *base*,
- calculated as ``log(x)/log(base)``.
+ Return the logarithm of *x* to the given *base*.
+ If the *base* is not specified, returns the natural
+ logarithm (base *e*) of *x*.
.. function:: log1p(x)