[Haskell-cafe] Re: Is logBase right?

Felipe Lessa felipe.lessa at gmail.com
Sun Aug 23 08:13:29 EDT 2009


On Sun, Aug 23, 2009 at 01:25:14PM +0200, Lennart Augustsson wrote:
> You're absolutely right.  It would be easy to change logBase to have
> special cases for, say, base 2 and base 10, and call the C library
> functions for those.  In fact, I think it's a worth while change,
> since it's easy and get's better results for some cases.

For a short-term solution there's Don's cmath[1].

[1] http://hackage.haskell.org/packages/archive/cmath/0.3/doc/html/Foreign-C-Math-Double.html#v:log10

--
Felipe.


More information about the Haskell-Cafe mailing list