[Haskell-cafe] Re: Solving a geometry problem with Haskell

ajb at spamcop.net ajb at spamcop.net
Sat Jan 12 19:09:58 EST 2008


G'day all.

Quoting Henning Thielemann <lemming at henning-thielemann.de>:

> The rare cases occur for big numbers.
>   http://www.haskell.org/haskellwiki/Generic_number_type#isSquare

How big, you might ask?

Prelude> let dd = undefined :: Double in floatRadix dd ^ floatDigits dd
9007199254740992

Pretty big, and covering enough cases that it's worth the optimisation
when it applies:

     http://andrew.bromage.org/darcs/numbertheory/Math/Util.hs

Cheers,
Andrew Bromage


More information about the Haskell-Cafe mailing list