[tcljava-user] Serious bug in Jacl log10 method in Jacl 1.4.0
Brought to you by:
mdejong
From: Bruce J. <nm...@ma...> - 2006-12-23 15:48:36
|
Starting with revision 1.13 of Expression.java the calculation of base 10 logarithms in Jacl is seriously incorrect. Prior to this revision, log10 is calculated (as it should be) by log (x) / log(10) With version 1.13 this was changed to log( x / log(10) ) which is completely wrong. This bug is present in Jacl 1.4.0, but not in 1.3.2 or earlier. A quick check for the correct version expr log10(10) 1.0 the now incorrect code gives expr log10(10) 1.46855264775 |