Hey Dan,
   Anne's way makes things much more simple/straightforward:

sage: n = 5
sage: R.<t> = QQ[]
sage: S = PowerSeriesRing(R, n, 'x', default_prec=n+1)
sage: Sym = SymmetricFunctions(R)
sage: HLP = Sym.hall_littlewood(t).P()
sage: f = prod( (1 - t*S.gen(i)*S.gen(j)) / (1 - S.gen(i)*S.gen(j)) for i 
in range(5) for j in range(i+1,5) )
sage: HLP(Sym.from_polynomial(f.polynomial()))
HLP[] + (-t+1)*HLP[1, 1] + (t^4-t^3-t+1)*HLP[1, 1, 1, 1] + (-t+1)*HLP[2, 2]

Since it's the coefficient ring, I don't think anything will break when you 
add the additional fraction field variables (if you know these are going to 
be Laurent polynomials, you might want to consider usin the 
LaurentPolynomialRing or the LaurentSeriesRing).

Best,
Travis

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to