[Tutor] How to calculate pi with this formula?

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Thu Oct 28 22:20:27 CEST 2004



On Thu, 28 Oct 2004, Dick Moores wrote:

> Interesting! Thanks.

Hi Dick,


Hmmm... This seems very close to a problem exercise from the classic
textbook Structure and Interpretation of Computer Programs (SICP):

http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-24.html#%_idx_3976

The approach that the SICP folks use is called "stream processing": I
wonder how difficult it would be to translate this from Scheme into
Python...




More information about the Tutor mailing list