Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
018ad1c9
Commit
018ad1c9
authored
Sep 01, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#6765: hint that log(x, base) is not very sophisticated.
parent
a88fd760
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Doc/library/math.rst
Doc/library/math.rst
+6
-3
No files found.
Doc/library/math.rst
View file @
018ad1c9
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment