[Tutor] How to calculate pi with another formula?

Bill Mill bill.mill at gmail.com
Thu Apr 14 19:53:41 CEST 2005


On 4/14/05, Kent Johnson <kent37 at tds.net> wrote:
> Dick Moores wrote:
> > Now to my new question. I have an artist friend who knows an artist who
> > needs pi expressed in base 12. I don't know how many digits he needs,
> > but I think he'll take what he can get. Is there a way to use
> > math.log(x, base) with the decimal module to accomplish this? Or is
> > there another way? Or is there no way?
> 
> I think I would try to write a program that converts base-10 decimal fractions to base 12. Then feed
> it the output of a pi-generating program.
> 

I just thought I would reference the fascinating thread that ensued
from this request on comp.lang.python :
http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/1839b7d733ae37d0/3b5f7138f0e5fbd1?q=pi+base+12&rnum=1#3b5f7138f0e5fbd1

Peace
Bill Mill
bill.mill at gmail.com


More information about the Tutor mailing list