mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -113,6 +113,7 @@ print 'log'
|
|||
testit('log(1/e)', math.log(1/math.e), -1)
|
||||
testit('log(1)', math.log(1), 0)
|
||||
testit('log(e)', math.log(math.e), 1)
|
||||
testit('log(32,2)', math.log(32,2), 5)
|
||||
|
||||
print 'log10'
|
||||
testit('log10(0.1)', math.log10(0.1), -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue