Compute pi to base 12 using Python?

Scott David Daniels Scott.Daniels at Acm.Org
Wed Apr 13 11:53:38 EDT 2005


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.

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

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list