Sophie

Sophie

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

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>generators(Ideal) -- the generator matrix of an ideal</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_generators_lp__Module_rp.html">next</a> | <a href="_generators_lp__Groebner__Basis_rp.html">previous</a> | <a href="_generators_lp__Module_rp.html">forward</a> | <a href="_generators_lp__Groebner__Basis_rp.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>generators(Ideal) -- the generator matrix of an ideal</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>generators I</tt><br/><tt>gens I</tt></div>
</dd></dl>
</div>
</li>
<li><span>Function: <a href="_generators.html" title="provide matrix or list of generators">generators</a></span></li>
<li><div class="single">Inputs:<ul><li><span><tt>I</tt>, <span>an <a href="___Ideal.html">ideal</a></span></span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><span>a <a href="___Matrix.html">matrix</a></span>, the one-row matrix whose entries are the generators of <tt>I</tt></span></li>
</ul>
</div>
</li>
<li><div class="single"><a href="_using_spfunctions_spwith_spoptional_spinputs.html">Optional inputs</a>:<ul><li><span><tt>CoefficientRing => </tt><span><span>default value null</span>, unused option</span></span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div>Each ideal in <em>Macaulay2</em> comes equipped with a one-row matrix with the generators of the ideal.  It is this matrix that is returned.<table class="examples"><tr><td><pre>i1 : R = ZZ/101[a,b,c];</pre>
</td></tr>
<tr><td><pre>i2 : I = ideal(a^2,a*b-2,c^4,a*c-1,a*c-1)

             2            4
o2 = ideal (a , a*b - 2, c , a*c - 1, a*c - 1)

o2 : Ideal of R</pre>
</td></tr>
<tr><td><pre>i3 : generators I

o3 = | a2 ab-2 c4 ac-1 ac-1 |

             1       5
o3 : Matrix R  &lt;--- R</pre>
</td></tr>
</table>
To obtain a list of generators, rather than a matrix, use<table class="examples"><tr><td><pre>i4 : first entries generators I

       2            4
o4 = {a , a*b - 2, c , a*c - 1, a*c - 1}

o4 : List</pre>
</td></tr>
</table>
If you want to remove unnecessary generators, use <a href="_trim.html" title="minimize generators and relations">trim</a>.<table class="examples"><tr><td><pre>i5 : I = trim I

                               2   4
o5 = ideal (a*c - 1, a*b - 2, a , c )

o5 : Ideal of R</pre>
</td></tr>
<tr><td><pre>i6 : gens I

o6 = | ac-1 ab-2 a2 c4 |

             1       4
o6 : Matrix R  &lt;--- R</pre>
</td></tr>
</table>
</div>
</div>
</div>
</body>
</html>