why 'lambda' and 'reduce'?
Manuel Garcia
news at manuelmgarcia.com
Thu Jun 12 20:19:16 EDT 2003
On Thu, 12 Jun 2003 17:09:37 -0600, Steven Taschuk
<staschuk at telusplanet.net> wrote:
>(It prints the first 5000 digits of pi, by the way. At least, it
>seems to. The first thirty digits are right, at least, and the
>algorithm is based on a sound plan. The only question is whether
>the arithmetic error and hardcoded recurrence-iteration limits
>affect more than ten digits (which is what the code allows for).
>Determining *that* would require someone who actually knows
>something about numerical analysis, which I do not.)
All 5000 digits are correct, unless the value of Pi has been changed
recently ;-)
Manuel
More information about the Python-list
mailing list