G
geremy condra
The problem is, it isn't *just* a performance optimization, there is a
semantic difference too. Consider:
True
But using something with more precision:
False
So you get different behaviour between floats and arbitrary precision
numbers.
And this shows up in the above implementation; reimplementing it using
Fractions and a truncated continuing fraction approximation of phi and
the square root of 5 gets us up to about 500, at the cost of a very
long computation time.
Geremy Condra