Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libmath.tex @ 26661:b12e326b4ea2 legacy-trunk
Apply SF patch 652930: Add optional base argument to math.log(x[, base]).
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Sat, 14 Dec 2002 19:51:34 +0000 |
| parents | 62403b93f470 |
| children | a9974a48a4d6 |
line wrap: on
line diff
--- a/Doc/lib/libmath.tex Sat Dec 14 17:17:56 2002 +0000 +++ b/Doc/lib/libmath.tex Sat Dec 14 19:51:34 2002 +0000 @@ -86,8 +86,10 @@ 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}
