# Revision history [back]

Yes, there is. You can write:

R.<x> = PolynomialRing(ComplexField(100))
W = [w.change_ring(R) for w in W]


Or you could regenerate the list to directly get polynomials in the desired ring:

R.<x> = PolynomialRing(ComplexField(100))
n = 5
W = [P.coxeter_polynomial().change_ring(R) for P in posets(n)]

 2 No.2 Revision slelievre 14569 ●16 ●136 ●287 http://carva.org/samue...

Yes, there is. You is.

This can be done either as post-treatment after you have already built the list of polynomials, or at the time of building the list.

If you already have the list W defined as in the question, you can write:

R.<x> C = PolynomialRing(ComplexField(100))
ComplexField(100)
W = [w.change_ring(R) [w.change_ring(C) for w in W]


Or you could regenerate the list to directly get polynomials in the desired ring:

R.<x> = PolynomialRing(ComplexField(100))
n = 5
C = ComplexField(100)
W = [P.coxeter_polynomial().change_ring(R) [P.coxeter_polynomial().change_ring(C) for P in posets(n)]


or

n = 5
R.<x> = PolynomialRing(ComplexField(100))
W = [R(P.coxeter_polynomial()) for P in posets(n)]