Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 3805

Macaulay2-1.3.1-8.fc15.i686.rpm

<?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 2.1.10 -- Submodules of A^n</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_sp2.1.13.html">next</a> | <a href="___Singular_sp__Book_sp2.1.7.html">previous</a> | <a href="___Singular_sp__Book_sp2.1.13.html">forward</a> | <a href="___Singular_sp__Book_sp2.1.7.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_sp2.1.10.html" title="Submodules of A^n">Singular Book 2.1.10</a></div>
<hr/>
<div><h1>Singular Book 2.1.10 -- Submodules of A^n</h1>
<div>A common method of creating a submodule of A^n in Macaulay2 is to take the image of a matrix.  This will be a submodule generated by the columns of the matrix.<table class="examples"><tr><td><pre>i1 : A = QQ[x,y,z];</pre>
</td></tr>
<tr><td><pre>i2 : f = matrix{{x*y-1,y^4},{z^2+3,x^3},{x*y*z,z^2}}

o2 = | xy-1 y4 |
     | z2+3 x3 |
     | xyz  z2 |

             3       2
o2 : Matrix A  &lt;--- A</pre>
</td></tr>
<tr><td><pre>i3 : M = image f

o3 = image | xy-1 y4 |
           | z2+3 x3 |
           | xyz  z2 |

                             3
o3 : A-module, submodule of A</pre>
</td></tr>
<tr><td><pre>i4 : numgens M

o4 = 2</pre>
</td></tr>
<tr><td><pre>i5 : ambient M

      3
o5 = A

o5 : A-module, free</pre>
</td></tr>
</table>
A submodule can easily be moved to quotient rings.<table class="examples"><tr><td><pre>i6 : Q = A/(x^2+y^2+z^2);</pre>
</td></tr>
<tr><td><pre>i7 : substitute(M,Q)

o7 = image | xy-1 y4       |
           | z2+3 -xy2-xz2 |
           | xyz  z2       |

                             3
o7 : Q-module, submodule of Q</pre>
</td></tr>
</table>
</div>
</div>
</body>
</html>