On 8/12/07, Justin C. Walker <[EMAIL PROTECTED]> wrote: > Hi, all, > > A question: I have a batch of lists of ring elements that I'd like to > turn into either polynomials or power series, a la > > sage: PSR.<t>=PowerSeriesRing(QQ) > sage: f = PowerSeries(PSR,[a,b,c]) > > There doesn't seem to be a way to do this, other than the obvious. > Does it make sense to support such coercion, or should one just bite > the editor and code it as needed?
I'm not sure what you're asking, but what's wrong with this? sage: PSR.<t>=PowerSeriesRing(QQ) sage: PSR([1,2,3]) 1 + 2*t + 3*t^2 I.e., coercion of lists to power series is built in already. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-forum URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---
