Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libcmath.tex @ 32350:11c31a98dfd6 legacy-trunk
Patch #826074: cmath.log optional base argument, fixes #823209
(Contributed by Andrew Gaul.)
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Mon, 14 Jun 2004 07:40:10 +0000 |
| parents | d923b3c8b152 |
| children | 67f2190e1f6d |
line wrap: on
line diff
--- a/Doc/lib/libcmath.tex Mon Jun 14 04:58:42 2004 +0000 +++ b/Doc/lib/libcmath.tex Mon Jun 14 07:40:10 2004 +0000 @@ -73,10 +73,12 @@ Return the exponential value \code{e**\var{x}}. \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 \var{base}. +If the \var{base} is not specified, returns the natural logarithm of \var{x}. There is one branch cut, from 0 along the negative real axis to -\infinity, continuous from above. +\versionchanged[\var{base} argument added]{2.4} \end{funcdesc} \begin{funcdesc}{log10}{x}
