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)
2 | No.2 Revision |
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()])