[Haskell-beginners] Re: Log_b(a)

Ertugrul Soeylemez es at ertes.de
Sun Mar 8 13:30:37 EDT 2009


"Matthew J. Williams" <matthewjwilliams1 at googlemail.com> wrote:

> Dear friends,
>
> 	What is the Haskell equivlent of log_b(a)? To clarify, log of 36 to
> the base 1.5.

I know it's probably bad style (because there is a specific function for
this) and also likely less efficient, I prefer to use this:

  log a / log b

Unless performance is significant, I find that more elegant than
logBase.


Greets,
Ertugrul.


-- 
nightmare = unsafePerformIO (getWrongWife >>= sex)
http://blog.ertes.de/




More information about the Beginners mailing list