<h3>2 <span class="Heading">Using the packages <strong class="pkg">GBNP</strong>
and <strong class="pkg">NMO</strong></span></h3>
<p>This package deals with polynomials in noncommutative algebras and to do so makes use of the noncommutative polynomial operations provided by the <strong class="pkg">GBNP</strong> <a href="chapBib_mj.html#biBGBNP">[CK24]</a> package, and orderings provided by the <strong class="pkg">NMO</strong> package, which is now included within <strong class="pkg">GBNP</strong>. In this chapter we remind users how to call some of these operations.</p>
<p>Recall that the main datatype used by the <strong class="pkg">GBNP</strong> package is a list of noncommutative polynomials (NPs). The data type for a noncommutative polynomial (its NP format) is a list of two lists:</p>
<ul>
<li><p>The first is a list <span class="SimpleMath">\(m\)</span> of monomials.</p>
</li>
<li><p>The second is a list <span class="SimpleMath">\(c\)</span> of coefficients of these monomials.</p>
</li>
</ul>
<p>The two lists have the same length. The polynomial represented by the ordered pair <span class="SimpleMath">\([m,c]\)</span> is <span class="SimpleMath">\(\sum_i c_i m_i\)</span>. A monomial is a list of positive integers. They are interpreted as the indices of the variables. So, if <span class="SimpleMath">\(k = [1,3,2,2,1]\)</span> and the variables are <span class="SimpleMath">\(x,y,z\)</span> (in this order), then <span class="SimpleMath">\(k\)</span> represents the monomial <span class="SimpleMath">\(xzy^2x\)</span>. There are various ways to print these, but the default uses variables <span class="SimpleMath">\(a,b,c,\ldots\)</span>. The zero polynomial is represented by <code class="code">[[],[]]</code> and the polynomial <span class="SimpleMath">\(1\)</span> is represented by <code class="code">[[[]],[1]]</code>. The algorithms are applicable for the algebra <span class="SimpleMath">\(\mathbb{F}[x_1,x_2,\ldots,x_t]\)</span> of noncommutative polynomials in <var class="Arg">t</var> variables over the field <span class="SimpleMath">\(\mathbb{F}\)</span>. Accordingly, the list <span class="SimpleMath">\(c\)</span> should contain elements of <span class="SimpleMath">\(\mathbb F\)</span>.</p>
<p>The <strong class="pkg">GBNP</strong> functions <code class="code">GP2NP</code> and <code class="code">NP2GP</code> convert a polynomial to NP format and back again. Polynomials returned by <code class="code">NP2GP</code> print with their coefficients enclosed in brackets. Polynomials may also be printed using the function <code class="code">PrintNP</code>. The function PrintNPList is used to print a list of NPs, with one polynomial per line. The function <code class="code">CleanNP</code> is used to collect terms and reorder them. The default ordering is first by degree and then lexicographically - <code class="code">MonomialGrlexOrdering</code>. Alternative orderings are available - see section <a href="chap2_mj.html#X7F82A3608248CD31"><span class="RefLink">2.3</span></a>.</p>
<p>The <strong class="pkg">GBNP</strong> package computes Gröbner bases using the function <code class="code">SGrobner</code>. In the example below the polynomials <span class="SimpleMath">\(\{p,q\}\)</span> define an ideal in <span class="SimpleMath">\(\mathbb{Z}[a,b]\)</span> which has a three element Gröbner basis.</p>
<h4>2.3 <span class="Heading">Orderings for monomials</span></h4>
<p>The three monomial orderings provided by the main <strong class="pkg">GAP</strong> library are <code class="code">MonomialLexOrdering</code>, <code class="code">MonomialGrlexOrdering</code> and <code class="code">MonomialGrevlexOrdering</code>. The first of these is the default used by <strong class="pkg">GBNP</strong>.</p>
<p>The <strong class="pkg">NMO</strong> package is now part of the package <strong class="pkg">GBNP</strong>. It provides a choice of orderings on monomials, including lexicographic and length-lexicographic ones.</p>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.