On Thursday 01 May 2008, Dan Drake wrote: > 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 Thanks for the suggestion. That means I can handle the existing stuff as a special case (no sublists).
I've not been able to afford a copy of Mathmatica (impoverished, retired, software engineer) so I was unaware of what it provided. If anyone can supply more info on what Mathmatica can do in this area it would be appreciated.... Bill -- +---------------------------------------+ | Bill Purvis, Amateur Mathematician | | email: [EMAIL PROTECTED] | +---------------------------------------+ --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---