mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Apply SF patch 652930: Add optional base argument to math.log(x[, base]).
This commit is contained in:
parent
a828586c3a
commit
866964c3a3
4 changed files with 54 additions and 17 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue