G'day all. I said:
> I've also extended the range for approxSmallSqrt here from (0,255) to > (0,271). It is left as an exercise as to why this might be a good idea. > > (Hint: 272 is approximately 16.5*16.5.) The correct answer, for those playing at home, is it's because it WAS a good idea when I wrote the code for integer square roots. Mindlessly cutting and pasting it into code for fractions makes it not such a good idea. Cheers, Andrew Bromage _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe