<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>Singular Book 1.8.11 -- intersection of ideals</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="___Singular_sp__Book_sp1.8.13.html">next</a> | <a href="___Singular_sp__Book_sp1.8.9.html">previous</a> | <a href="___Singular_sp__Book_sp1.8.13.html">forward</a> | <a href="___Singular_sp__Book_sp1.8.9.html">backward</a> | <a href="___M2__Singular__Book.html">up</a> | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <div><a href="index.html" title="">Macaulay2Doc</a> > <a href="_basic_spcommutative_spalgebra.html" title="">basic commutative algebra</a> > <a href="___M2__Singular__Book.html" title="Macaulay2 examples for the Singular book">M2SingularBook</a> > <a href="___Singular_sp__Book_sp1.8.11.html" title="intersection of ideals">Singular Book 1.8.11</a></div> <hr/> <div><h1>Singular Book 1.8.11 -- intersection of ideals</h1> <div>Intersecting ideals using the Macaulay2 <a href="_intersect.html" title="compute an intersection">intersect</a> function.<table class="examples"><tr><td><pre>i1 : A = QQ[x,y,z];</pre> </td></tr> <tr><td><pre>i2 : I1 = ideal(x,y); o2 : Ideal of A</pre> </td></tr> <tr><td><pre>i3 : I2 = ideal(y^2,z); o3 : Ideal of A</pre> </td></tr> <tr><td><pre>i4 : intersect(I1,I2) 2 o4 = ideal (y*z, x*z, y ) o4 : Ideal of A</pre> </td></tr> </table> Now we use the method described in the Singular book in section 1.8.7.<table class="examples"><tr><td><pre>i5 : B = QQ[t,x,y,z];</pre> </td></tr> <tr><td><pre>i6 : I1 = substitute(I1,B); o6 : Ideal of B</pre> </td></tr> <tr><td><pre>i7 : I2 = substitute(I2,B); o7 : Ideal of B</pre> </td></tr> <tr><td><pre>i8 : J = t*I1 + (1-t)*I2 2 2 o8 = ideal (t*x, t*y, - t*y + y , - t*z + z) o8 : Ideal of B</pre> </td></tr> <tr><td><pre>i9 : loadPackage "Elimination";</pre> </td></tr> <tr><td><pre>i10 : eliminate(J,t) 2 o10 = ideal (y*z, x*z, y ) o10 : Ideal of B</pre> </td></tr> </table> </div> </div> </body> </html>