
20 Jan
2007
20 Jan
'07
9:46 a.m.
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