First time here? Check out the FAQ!
answered 2019-12-20 00:56:24 +0100
Substitutions can be explicitely defined through dictionaries. How about:
sage: R.<x,y> = ZZ[] sage: f = 1+x+y^2 sage: [p.substitute({y:x}) for p in f.monomials()] [x^2, x, 1]