<?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.2.13 -- monomial orderings</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.3.3.html">next</a> | <a href="___Singular_sp__Book_sp1.2.3.html">previous</a> | <a href="___Singular_sp__Book_sp1.3.3.html">forward</a> | <a href="___Singular_sp__Book_sp1.2.3.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.2.13.html" title="monomial orderings">Singular Book 1.2.13</a></div> <hr/> <div><h1>Singular Book 1.2.13 -- monomial orderings</h1> <div>Monomial orderings are specified when defining a polynomial ring.<h2>global orderings</h2> The default order is the graded (degree) reverse lexicographic order.<table class="examples"><tr><td><pre>i1 : A2 = QQ[x,y,z];</pre> </td></tr> <tr><td><pre>i2 : A2 = QQ[x,y,z,MonomialOrder=>GRevLex];</pre> </td></tr> <tr><td><pre>i3 : f = x^3*y*z+y^5+z^4+x^3+x*y^2 5 3 4 3 2 o3 = y + x y*z + z + x + x*y o3 : A2</pre> </td></tr> </table> Lexicographic order.<table class="examples"><tr><td><pre>i4 : A1 = QQ[x,y,z,MonomialOrder=>Lex];</pre> </td></tr> <tr><td><pre>i5 : substitute(f,A1) 3 3 2 5 4 o5 = x y*z + x + x*y + y + z o5 : A1</pre> </td></tr> </table> Graded (degree) lexicographic order.<table class="examples"><tr><td><pre>i6 : A3 = QQ[x,y,z,MonomialOrder=>{Weights=>{1,1,1},Lex}];</pre> </td></tr> <tr><td><pre>i7 : substitute(f,A3) 3 5 4 3 2 o7 = x y*z + y + z + x + x*y o7 : A3</pre> </td></tr> </table> Graded (degree) lexicographic order, with nonstandard weights.<table class="examples"><tr><td><pre>i8 : A4 = QQ[x,y,z,MonomialOrder=>{Weights=>{5,3,2},Lex}];</pre> </td></tr> <tr><td><pre>i9 : substitute(f,A4) 3 3 5 2 4 o9 = x y*z + x + y + x*y + z o9 : A4</pre> </td></tr> </table> A product order, with each block being GRevLex.<table class="examples"><tr><td><pre>i10 : A = QQ[x,y,z,MonomialOrder=>{1,2}];</pre> </td></tr> <tr><td><pre>i11 : substitute(f,A) 3 3 2 5 4 o11 = x y*z + x + x*y + y + z o11 : A</pre> </td></tr> </table> <h2>local orderings</h2> Negative lexicographic order.<table class="examples"><tr><td><pre>i12 : A = QQ[x,y,z,MonomialOrder=>{Weights=>{-1,0,0},Weights=>{0,-1,0},Weights=>{0,0,-1}},Global=>false];</pre> </td></tr> <tr><td><pre>i13 : substitute(f,A) 4 5 2 3 3 o13 = z + y + x*y + x + x y*z o13 : A</pre> </td></tr> </table> Negative graded reverse lexicographic order.<table class="examples"><tr><td><pre>i14 : A = QQ[x,y,z,MonomialOrder=>{Weights=>{-1,-1,-1},GRevLex},Global=>false];</pre> </td></tr> <tr><td><pre>i15 : substitute(f,A) 3 2 4 5 3 o15 = x + x*y + z + y + x y*z o15 : A</pre> </td></tr> </table> </div> </div> </body> </html>