[Haskell-beginners] Log_b(a)
Daniel Fischer
daniel.is.fischer at web.de
Sat Mar 7 19:34:19 EST 2009
Am Sonntag, 8. März 2009 01:30 schrieb Matthew J. Williams:
> Dear friends,
>
> What is the Haskell equivlent of log_b(a)? To clarify, log of 36 to
> the base 1.5.
>
> Sincerely
> Matthew J. Williams
>
Prelude> :i logBase
class (Fractional a) => Floating a where
...
logBase :: a -> a -> a
...
-- Defined in GHC.Float
Prelude> logBase 1.5 36
8.838045165405818
Cheers,
Daniel
More information about the Beginners
mailing list