[sage-support] Re: Arithmetic base(n)

2009-01-15 Thread Crissy Ruffo
Thanks for the tips. The method suggested for working with the p-adic numbers is pretty much what I was looking for, at least it gets me started in the right direction. The question regarding how sage preforms the arithmetic is a more curiosity than anything else. I'll see what else I can find o

[sage-support] Re: Arithmetic base(n)

2009-01-14 Thread Robert Bradshaw
On Jan 14, 2009, at 12:04 PM, Crissy Ruffo wrote: > I was looking into how SAGE handles arithmetic base(n). Best I can > tell, I use the function Integer('string rep of number', base), but > the answer returned is base(10), so I use the function .str(base) to > convert it back to the desired ba

[sage-support] Re: Arithmetic base(n)

2009-01-14 Thread Carl Witty
On Jan 14, 12:04 pm, Crissy Ruffo wrote: > I was looking into how SAGE handles arithmetic base(n).  Best I can > tell, I use the function  Integer('string rep of number', base), but > the answer returned is base(10), so I use the function .str(base) to > convert it back to the desired base.  (tha