[issue6765] math.log, log10 inconsistency

2009-09-01 Thread Georg Brandl
Georg Brandl added the comment: Okay, I made changes along Terry' suggestions in r74617. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue6765] math.log, log10 inconsistency

2009-08-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Reopening as doc issue. This is at least the second time this issue has been reported (see #3724), with some agreement on doc tweak, but not done. Specific suggestions for math module doc, 9.2.2: math.log(x[, base]) Return the logarithm of x to the given base

[issue6765] math.log, log10 inconsistency

2009-08-24 Thread Tim Peters
Tim Peters added the comment: I wasn't keen to add the 2-argument log() extension either. However, I bet it would help if the docs for that were changed to explain that log(x, base) is just a convenient shorthand for computing log(x)/log(base), and therefore may be a little less accurate than a

[issue6765] math.log, log10 inconsistency

2009-08-24 Thread Mark Dickinson
Mark Dickinson added the comment: > If Python functions are inconsistent then I think they should either be > made consistent, or if that's not possible they should be clearly > documented as being inconsistent. I think 'inconsistent' is a bit strong for what happens here. In my view, the ex

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread steve21
steve21 added the comment: Mark, "... that's what log10 is there for". That would be a good point if the documentation said that. However, all the docs for log10 say is: math.log10(x) Return the base-10 logarithm of x. So we have a python function log10() which looks like it is redundant s

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread Mark Dickinson
Mark Dickinson added the comment: Well, that's floating-point arithmetic for you. log(x, y) simply computes log(x)/log(y) behind the scenes; since both log computations and the floating-point division can introduce errors, the result will frequently not be correctly rounded. I don't really

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread steve21
New submission from steve21 : $ python3.1 Python 3.1 (r31:73572, Jul 6 2009, 21:21:12) [GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import math >>> math.log10(1000) 3.0 >>> math.log(1000, 10) 2.9996 You