Message91888
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. |
|
Date |
User |
Action |
Args |
2009-08-23 15:22:53 | mark.dickinson | set | recipients:
+ mark.dickinson, steve21 |
2009-08-23 15:22:53 | mark.dickinson | set | messageid: <1251040973.02.0.949878652648.issue6765@psf.upfronthosting.co.za> |
2009-08-23 15:22:51 | mark.dickinson | link | issue6765 messages |
2009-08-23 15:22:50 | mark.dickinson | create | |
|