This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson, steve21
Date 2009-08-23.15:22:50
SpamBayes Score 1.0425647e-06
Marked as misclassified No
Message-id <1251040973.02.0.949878652648.issue6765@psf.upfronthosting.co.za>
In-reply-to
Content
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 see the benefit of special-casing log(x, 10).  In what 
circumstances does it matter that log(x, 10) != log10(x)?  I could 
understand people being upset that log(10**n, 10) doesn't return n 
exactly, but that's what log10 is there for.

See also the discussion in issue 3724.
History
Date User Action Args
2009-08-23 15:22:53mark.dickinsonsetrecipients: + mark.dickinson, steve21
2009-08-23 15:22:53mark.dickinsonsetmessageid: <1251040973.02.0.949878652648.issue6765@psf.upfronthosting.co.za>
2009-08-23 15:22:51mark.dickinsonlinkissue6765 messages
2009-08-23 15:22:50mark.dickinsoncreate