How to get many places of pi from Machin's Equation?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Jan 9 09:42:16 EST 2010


En Sat, 09 Jan 2010 08:31:49 -0300, Richard D. Moores <rdmoores at gmail.com>  
escribió:

> Is there a way in Python 3.1 to calculate pi to greater accuracy using
> Machin's Equation? Even to an arbitrary number of places?

You may be interested in Demo/scripts/pi.py in the source distribution. It  
can generate pi with infinite precision, limited by available memory only.
And this thread from last month:  
http://groups.google.com/group/comp.lang.python/t/e37bb8c59f2e5582/

-- 
Gabriel Genellina




More information about the Python-list mailing list