| 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()])
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.