<?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>intersect -- compute an intersection</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="___Intersection.html">next</a> | <a href="_interpreter__Depth.html">previous</a> | <a href="___Intersection.html">forward</a> | <a href="_interpreter__Depth.html">backward</a> | up | <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> <hr/> <div><h1>intersect -- compute an intersection</h1> <div class="single"><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>intersect (M,N,...,P) </tt></div> </dd></dl> </div> </li> <li><div class="single">Inputs:<ul><li><span><tt>(M,N,...,P)</tt>, <span>a <a href="___List.html">list</a></span> or <span>a <a href="___Sequence.html">sequence</a></span> of modules or ideals that are submodules of the same module or ideals in the same ring</span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><span>a <a href="___Module.html">module</a></span> or <span>an <a href="___Ideal.html">ideal</a></span> that is the intersection of the elements in the list or in the sequence.</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>This function calculates the intersection of submodules of the same free module, or of ideals in the same ring.<p>The following example computes the intersection of a sequence of ideals.</p> <table class="examples"><tr><td><pre>i1 : R=ZZ/101[a..d];</pre> </td></tr> <tr><td><pre>i2 : I=intersect(ideal(a,b),ideal(b,c),ideal(c,d),ideal(d,a)) o2 = ideal (b*d, a*c) o2 : Ideal of R</pre> </td></tr> </table> <p>The following example computes the intersection of a list of modules.</p> <table class="examples"><tr><td><pre>i3 : R=ZZ[x,y,z];</pre> </td></tr> <tr><td><pre>i4 : M=image matrix{{3*x},{3*x}};</pre> </td></tr> <tr><td><pre>i5 : N=image matrix{{5*y},{5*y}};</pre> </td></tr> <tr><td><pre>i6 : P=image matrix{{7*z},{7*z}};</pre> </td></tr> <tr><td><pre>i7 : intersect{M,N,P} o7 = image | 105xyz | | 105xyz | 2 o7 : R-module, submodule of R</pre> </td></tr> </table> <p>The command <a href="_intersect.html" title="compute an intersection">intersect</a> will only work with proper ideals. To intersect an ideal with a ring, use <a href="_select__In__Subring.html" title="select columns in a subring">selectInSubring</a> along with the elimination ordering, see <a href="___Eliminate.html" title="elimination order">Eliminate</a>.</p> </div> </div> <div class="waystouse"><h2>Ways to use <tt>intersect</tt> :</h2> <ul><li>intersect(List)</li> <li>intersect(Sequence)</li> </ul> </div> </div> </body> </html>