[GOODIE][DEMO] Computing Pi to thousands of digits

David N. Smith (IBM) dnsmith at watson.ibm.com
Tue Mar 6 19:00:39 UTC 2001


All:

I ran into some old code and ported it to Squeak. It computes Pi to an arbitrary precision, but in practice 10,000 digits on a Mac PowerBook G3 is a lot. See the attachment for details.

This is not too terribly useful except as a benchmark of fast integers, and a demo. I've check the result with results found on the web and they match to 10,000 digits.

This was created on 3.0 but should not be release dependent. There are two new methods added to Integer, but they are optional and can be omitted, though they are not apt to clash with anything else.

Dave
-------------- next part --------------
Skipped content of type multipart/appledouble-------------- next part --------------
-- 
_______________________________
David N. Smith
IBM T J Watson Research Center
Hawthorne, NY
_______________________________
Any opinions or recommendations
herein are those of the author  
and not of his employer.


More information about the Squeak-dev mailing list