ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 05 Jun 2013 10:59:42 +0200How can I compute Intersect of Ideals?https://ask.sagemath.org/question/10160/how-can-i-compute-intersect-of-ideals/hello
Could you please tell me how can I compute intersect of two or more Ideals?
Thank you Wed, 05 Jun 2013 10:31:15 +0200https://ask.sagemath.org/question/10160/how-can-i-compute-intersect-of-ideals/Answer by tmonteil for <p>hello
Could you please tell me how can I compute intersect of two or more Ideals?
Thank you </p>
https://ask.sagemath.org/question/10160/how-can-i-compute-intersect-of-ideals/?answer=15026#post-id-15026I am not sure i understand your question, but you may try:
sage: R.<x> = PolynomialRing(QQ, 1) ; R
Multivariate Polynomial Ring in x over Rational Field
sage: I = R.ideal(x^2-1) ; I
Ideal (x^2 - 1) of Multivariate Polynomial Ring in x over Rational Field
sage: J = R.ideal(x^2-2) ; J
Ideal (x^2 - 2) of Multivariate Polynomial Ring in x over Rational Field
sage: I.intersection(J)
Ideal (x^4 - 3*x^2 + 2) of Multivariate Polynomial Ring in x over Rational Field
Wed, 05 Jun 2013 10:59:42 +0200https://ask.sagemath.org/question/10160/how-can-i-compute-intersect-of-ideals/?answer=15026#post-id-15026