On Wed, 30 Apr 2008 at 09:10AM -0700, bill.p wrote: > > My present thought is that I'd need a list of integers plus another > > integer - the integer could either be the number of non-recurring > > terms, or it could be the number of recurring terms. Given the way > > that Python handles negative indices I guess the second option could > > amount to the same thing by making it negative. Again, feedback > > welcomed. > > > > Bill > Hmmm, I'll take that as 'No Interest' then....
I haven't been following this carefully, but I'd like to see a format
for quadratic irrationals that is along the same lines as Mathematica:
ContinuedFraction[Sqrt[15]]
yields
{3, {1, 6}}.
The first entry is the integer part, and after that, we'd have a tuple
or list that gives you the periodic stuff. Rational numbers would be
just a list of integers:
{3, 7, 15, 1, 292, 1, 1, 1, 2, 1}
It would also be nice if you could do symbolic expressions as entries in
the list.
Dan
--
--- Dan Drake <[EMAIL PROTECTED]>
----- KAIST Department of Mathematical Sciences
------- http://math.kaist.ac.kr/~drake
signature.asc
Description: Digital signature
