Kaydet (Commit) 018ad1c9 authored tarafından Georg Brandl's avatar Georg Brandl

#6765: hint that log(x, base) is not very sophisticated.

üst a88fd760
...@@ -166,8 +166,10 @@ Power and logarithmic functions ...@@ -166,8 +166,10 @@ Power and logarithmic functions
.. function:: log(x[, base]) .. function:: log(x[, base])
Return the logarithm of *x* to the given *base*. If the *base* is not specified, With one argument, return the natural logarithm of *x* (to base *e*).
return the natural logarithm of *x* (that is, the logarithm to base *e*).
With two arguments, return the logarithm of *x* to the given *base*,
calculated as ``log(x)/log(base)``.
.. versionchanged:: 2.3 .. versionchanged:: 2.3
*base* argument added. *base* argument added.
...@@ -183,7 +185,8 @@ Power and logarithmic functions ...@@ -183,7 +185,8 @@ Power and logarithmic functions
.. function:: log10(x) .. function:: log10(x)
Return the base-10 logarithm of *x*. Return the base-10 logarithm of *x*. This is usually more accurate
than ``log(x, 10)``.
.. function:: pow(x, y) .. function:: pow(x, y)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment