Re: [sage-support] using a base other then base 10.

2012-05-21 Thread Eric Kangas
thanks wasn't even thinking about a dictionary. On Monday, May 21, 2012 10:05:26 AM UTC-7, John H Palmieri wrote: > > > > On Monday, May 21, 2012 9:49:08 AM UTC-7, Eric Kangas wrote: >> >> When dealing with base 36 I realized there is no letter available to use >> in for loops. >> >> Here is the

Re: [sage-support] using a base other then base 10.

2012-05-21 Thread John H Palmieri
On Monday, May 21, 2012 9:49:08 AM UTC-7, Eric Kangas wrote: > > When dealing with base 36 I realized there is no letter available to use > in for loops. > > Here is the code that I have right now. > > a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,t,u,v,w,x,y,z = > var('a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,

Re: [sage-support] using a base other then base 10.

2012-05-21 Thread Eric Kangas
When dealing with base 36 I realized there is no letter available to use in for loops. Here is the code that I have right now. a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,t,u,v,w,x,y,z = var('a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,t,u,v,w,x,y,z') pie = pi.n(1000) pie36 = list(pie.str(base=36)) pie36.

Re: [sage-support] using a base other then base 10.

2012-05-18 Thread D. S. McNeil
The following: sage: z = pi.n(100) sage: z.str(base=4) '3.0210033310202011220300203103010301212022023200' should get you started. Doug -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups

[sage-support] using a base other then base 10.

2012-05-18 Thread Eric Kangas
Hi, I tried finding out how to switch over to another base, but couldn't find any information on how to. Here is the code I have right now for another project. I just need to figure out where to place the base change code. a = 1000 p = list(str(n(pi, digits = a))) p.remove('.') p = [int(i)