diff options
author | Raymond Hettinger <python@rcn.com> | 2002-12-14 19:51:34 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-12-14 19:51:34 (GMT) |
commit | 866964c3a3823c8d42c51a41c5c7264a569200b4 (patch) | |
tree | 0ad3fb175d1d8fadb3005ed94ff43a97e82caa0e /Doc/lib/libmath.tex | |
parent | a828586c3a2a2c07558f8872ef115adc3e24ad9f (diff) | |
download | cpython-866964c3a3823c8d42c51a41c5c7264a569200b4.zip cpython-866964c3a3823c8d42c51a41c5c7264a569200b4.tar.gz cpython-866964c3a3823c8d42c51a41c5c7264a569200b4.tar.bz2 |
Apply SF patch 652930: Add optional base argument to math.log(x[, base]).
Diffstat (limited to 'Doc/lib/libmath.tex')
-rw-r--r-- | Doc/lib/libmath.tex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/lib/libmath.tex b/Doc/lib/libmath.tex index f013e23..1dc4365 100644 --- a/Doc/lib/libmath.tex +++ b/Doc/lib/libmath.tex @@ -86,8 +86,10 @@ Return the Euclidean distance, \code{sqrt(\var{x}*\var{x} + \var{y}*\var{y})}. Return \code{\var{x} * (2**\var{i})}. \end{funcdesc} -\begin{funcdesc}{log}{x} -Return the natural logarithm of \var{x}. +\begin{funcdesc}{log}{x\optional{, base}} +Returns the logarithm of \var{x} to the given base. +If the base is not specified, returns the natural logarithm of \var{x}. +\versionchanged[\var{base} argument added]{2.3} \end{funcdesc} \begin{funcdesc}{log10}{x} |