Let R,q=QQ["q"] and S,(x,q)=QQ["x","q"] two polynomial Ring.
let p = q^4 - 2*q^2 + q + 1 defined in R and S.
collect(coefficients(p)) in R give me
5-element Vector{QQFieldElem}:
1
1
-2
0
1
while in the ring S, I got
4-element Vector{QQFieldElem}:
1
-2
1
1
Why this difference ?
I want to get also in S
5-element Vector{QQFieldElem}:
1
1
-2
0
1
The same behaviour with terms and degree_fmpz, monomials and Preformatted text