Compute pi to base 12 using Python?

Dan Bishop danb_83 at yahoo.com
Wed Apr 13 13:21:39 EDT 2005


Scott David Daniels wrote:
> Roy Smith wrote:
> > In article <1113390479.738210.49530 at z14g2000cwz.googlegroups.com>,
> >  "Dan Bishop" <danb_83 at yahoo.com> wrote:
> >
> >>But there's no reason other than tradition why you should arrange
them
> >>into groups of 10.
> >
> > Well, it is traditional for people to have 10 fingers :-)
> >
> > Other fun things to think about are negative bases.  For example,
3(10) =
> > 111(-2).  That's 1*(-2)^2  + 1*(-2)^1 + 1*(-2)^0 = 4 - 2 + 1.  I
can't
> > think of any use for negative bases, but they are a fun game to
play with
> > (if you're into that sort of stuff).
> >
> > Non-integer bases are fun too.

Pi has an interesting representation in bases between 0 and 1,
exclusive.  There are a finite number of digits after the radix point,
but an infinite number _before_ it.

> If you think those are fun, try base (1j - 1)

I think Knuth wrote something about complex bases back in the year
1000200000001000000010001.




More information about the Python-list mailing list