Seria 7 - zadanie 2

2668 days ago by netkuba

RR.<x,y> = PolynomialRing(QQ, 2, order='lex') I = (x^2, x*y, y^2)*RR cpdI = I.complete_primary_decomposition() print cpdI 
       
[(Ideal (y^2, x*y, x^2) of Multivariate Polynomial Ring in x, y, z
over Rational Field, Ideal (y, x) of Multivariate Polynomial Ring in
x, y, z over Rational Field)]
RR.<x,y> = PolynomialRing(QQ, 2, order='lex') I = (x*y^5, x^3*y^4, x^6*y^2)*RR cpdI = I.complete_primary_decomposition() print cpdI 
       
[(Ideal (y^2) of Multivariate Polynomial Ring in x, y, z over
Rational Field, Ideal (y) of Multivariate Polynomial Ring in x, y, z
over Rational Field), (Ideal (x) of Multivariate Polynomial Ring in
x, y, z over Rational Field, Ideal (x) of Multivariate Polynomial
Ring in x, y, z over Rational Field), (Ideal (y^5, x^3*y^4, x^6) of
Multivariate Polynomial Ring in x, y, z over Rational Field, Ideal
(y, x) of Multivariate Polynomial Ring in x, y, z over Rational
Field)]
RR.<x,y,z> = PolynomialRing(QQ, 3, order='lex') I = (x^5, x^3*y*z, x^4*z)*RR cpdI = I.complete_primary_decomposition() print cpdI 
       
[(Ideal (x^3) of Multivariate Polynomial Ring in x, y, z over
Rational Field, Ideal (x) of Multivariate Polynomial Ring in x, y, z
over Rational Field), (Ideal (z, x^5) of Multivariate Polynomial
Ring in x, y, z over Rational Field, Ideal (z, x) of Multivariate
Polynomial Ring in x, y, z over Rational Field), (Ideal (y, x^4) of
Multivariate Polynomial Ring in x, y, z over Rational Field, Ideal
(y, x) of Multivariate Polynomial Ring in x, y, z over Rational
Field)]