On May 3, 2006, at 5:47 PM, Dave Burt wrote: > Minkoo Seo wrote: >> I'm using ruby for my research purpose, and as everyone knows >> computer science is all about log function whose base is 2. >> >> Unfortunately, Math module does not contain log2 though it has >> log10. What do you think about adding log2 to Math? >> >> Yes, I know that adding log2 is way so simple because I can >> open Math module and add log2 method, but I've had to that ALWAYS. > > I say yes to log2. > > Cheers, > Dave > Why not just redefine Math.log(numeric) to be Math.log(numeric, base = Math::E) It won't even break existing code, and is slightly less typing than log(numeric)/log(base)