Apply SF patch 652930: Add optional base argument to math.log(x[, base]).

This commit is contained in:
Raymond Hettinger 2002-12-14 19:51:34 +00:00
parent a828586c3a
commit 866964c3a3
4 changed files with 54 additions and 17 deletions

View file

@ -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)