Sophie

Sophie

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

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 1.8.4 -- elimination of variables</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.6.html">next</a> | <a href="___Singular_sp__Book_sp1.8.2.html">previous</a> | <a href="___Singular_sp__Book_sp1.8.6.html">forward</a> | <a href="___Singular_sp__Book_sp1.8.2.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.4.html" title="elimination of variables">Singular Book 1.8.4</a></div>
<hr/>
<div><h1>Singular Book 1.8.4 -- elimination of variables</h1>
<div>There are several methods to eliminate variables in Macaulay2.<table class="examples"><tr><td><pre>i1 : loadPackage "Elimination";</pre>
</td></tr>
<tr><td><pre>i2 : A = QQ[t,x,y,z];</pre>
</td></tr>
<tr><td><pre>i3 : I = ideal"t2+x2+y2+z2,t2+2x2-xy-z2,t+y3-z3";

o3 : Ideal of A</pre>
</td></tr>
<tr><td><pre>i4 : eliminate(I,t)

             2          2     2   6     3 3    6           2     2
o4 = ideal (x  - x*y - y  - 2z , y  - 2y z  + z  + x*y + 2y  + 3z )

o4 : Ideal of A</pre>
</td></tr>
</table>
<p/>
Alternatively, one may do it by hand: the elements of the Groebner basis under an elimination order not involving <tt>t</tt> generate the elimination ideal.<table class="examples"><tr><td><pre>i5 : A1 = QQ[t,x,y,z,MonomialOrder=>{1,3}];</pre>
</td></tr>
<tr><td><pre>i6 : I = substitute(I,A1);

o6 : Ideal of A1</pre>
</td></tr>
<tr><td><pre>i7 : transpose gens gb I

o7 = {-2} | x2-xy-y2-2z2           |
     {-6} | y6-2y3z3+z6+xy+2y2+3z2 |
     {-3} | t+y3-z3                |

              3        1
o7 : Matrix A1  &lt;--- A1</pre>
</td></tr>
</table>
<p/>
Here is another elimination ideal.  Weights not given are assumed to be zero.<table class="examples"><tr><td><pre>i8 : A2 = QQ[t,x,y,z,MonomialOrder=>Weights=>{1}];</pre>
</td></tr>
<tr><td><pre>i9 : I = substitute(I,A2);

o9 : Ideal of A2</pre>
</td></tr>
<tr><td><pre>i10 : transpose gens gb I

o10 = {-2} | x2-xy-y2-2z2           |
      {-6} | y6-2y3z3+z6+xy+2y2+3z2 |
      {-3} | t+y3-z3                |

               3        1
o10 : Matrix A2  &lt;--- A2</pre>
</td></tr>
</table>
<p/>
The same order as the previous one:<table class="examples"><tr><td><pre>i11 : A3 = QQ[t,x,y,z,MonomialOrder=>Eliminate 1];</pre>
</td></tr>
<tr><td><pre>i12 : I = substitute(I,A3);

o12 : Ideal of A3</pre>
</td></tr>
<tr><td><pre>i13 : transpose gens gb I

o13 = {-2} | x2-xy-y2-2z2           |
      {-6} | y6-2y3z3+z6+xy+2y2+3z2 |
      {-3} | t+y3-z3                |

               3        1
o13 : Matrix A3  &lt;--- A3</pre>
</td></tr>
</table>
</div>
</div>
</body>
</html>