One way:

sage: SR = SymbolicExpressionRing()
sage: a = var("a")
sage: R = LaurentPolynomialRing(SR,"t")
sage: t = R.gen()
sage: f = sqrt(a)*t+t^(-2)
sage: f.exponents()
[(1,), (-2,)]


On Sat, Jul 19, 2008 at 1:07 AM, Andrey Novoseltsev <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I have a symbolic expression which is a polynomial in t and t^(-1). I
> want to multiply it by some power of t so that it is a polynomial of
> t. How can I determine this power? Coefficients are some symbolic
> expressions in other variables, e.g. sqrt(a)*t+1/t^2.
>
> Thank you,
> Andrey
> >
>

--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to