Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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)]

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)]