Compute pi to base 12 using Python?

Paul Rubin http
Sun Apr 17 05:35:47 EDT 2005


Dick Moores <rdm at rcblue.com> writes:
> >C:\cygwin\bin\bc -l > pi12.txt
> 
> But how or when do you enter the lines
> 
> scale = 3000
> obase = 12
> print 4 * a(1)

You could put them into a file, say pi.bc.  Then run
  bc -l pi.bc



More information about the Python-list mailing list