Recursion or iteration (was Fibonacci series recursion error)

rusi rustompmody at gmail.com
Tue May 3 06:51:16 EDT 2011


On May 3, 3:32 pm, Dave Angel <da... at ieee.org> wrote:

> What I'm surprised at is that nobody has pointed out that the logn
> version is also generally more accurate, given traditional floats.
> Usually getting the answer accurate (given the constraints of finite
> precision intermediates) is more important than performance, but in this
> case they go hand in hand.

Well!!
That's a slant that I was not aware of -- though fairly obvious on
second thought.

Thanks Dave.



More information about the Python-list mailing list