Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This should do the job:

R.<x,y> = QQ[] I = R.ideal([x^2+x, x^2+y]) J = R.ideal([f.homogeneous_components()[f.degree()] for f in I.groebner_basis()]) print(J)

This should do the job:

R.<x,y> = QQ[]
I = R.ideal([x^2+x, x^2+y])
J = R.ideal([f.homogeneous_components()[f.degree()] for f in I.groebner_basis()])
print(J)

print(J)