<p id="mathjaxlink" class="pcenter"><a href="chap6_mj.html">[MathJax on]</a></p>
<p><a id="X7E08032186064BAD" name="X7E08032186064BAD"></a></p>
<div class="ChapSects"><a href="chap6.html#X7E08032186064BAD">6 <span class="Heading">
Usage of <strong class="pkg">IntPic</strong> in connection with the <strong class="pkg">numericalsgps</strong> package
</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap6.html#X7B3048667C19F30D">6.1 <span class="Heading">Tikz code for drawing numerical semigroups</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap6.html#X7B3048667C19F30D">6.1-1 <span class="Heading">Tikz code for drawing numerical semigroups</span></a>
</span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap6.html#X84B40345825B0B0E">6.1-2 <span class="Heading">Drawing a numerical semigroup</span></a>
</span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap6.html#X7BF14BF082E52625">6.2 <span class="Heading">Drawing sets of numerical semigroups</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap6.html#X78B4B1D0810D457B">6.2-1 <span class="Heading">Set of numerical semigroups</span></a>
</span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap6.html#X7D735F977FDCA8A0">6.2-2 <span class="Heading">Draw a set of numerical semigroups</span></a>
</span>
</div></div>
</div>
<h3>6 <span class="Heading">
Usage of <strong class="pkg">IntPic</strong> in connection with the <strong class="pkg">numericalsgps</strong> package
</span></h3>
<p>This chapter describes functions to be used in connection with the <strong class="pkg">numericalsgps</strong> package. We found it particularly useful to gain intuition that led to the obtention of the results stated in <a href="chapBib.html#biBDGSRP15">[DGR16]</a>.</p>
<h5>6.1-1 <span class="Heading">Tikz code for drawing numerical semigroups</span></h5>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ TikzCodeForNumericalSemigroup</code>( <var class="Arg">arg</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>The arguments (at most 4) are:</p>
<ol>
<li><p>a numerical semigroup</p>
</li>
<li><p>(optional) a list whose elements are either</p>
<ul>
<li><p>lists of integers <em>or</em></p>
</li>
<li><p>one of the strings "pseudo_frobenius", "min_generators", "frobenius_number", "conductor", "special_gaps", "fundamental_gaps", "small_elements" (the default: used when no list is present) <em>or</em></p>
</li>
<li><p>the string "ns_table" (the drawing obtained is a table whose top row corresponds to the threshold interval; as a side effect, if it is turned to "true", negative integers are not printed); alternatively, the option can be given in the usual way: <code class="code">rec(ns_table := true)</code></p>
</li>
</ul>
</li>
<li><p>a record whose fields are</p>
<ul>
<li><p>func -- a function name</p>
</li>
<li><p>(optional) argument -- an argument (that may be a function name also)</p>
</li>
</ul>
</li>
<li><p>(optional) a positive integer -- if it is bigger than the conductor or biggest minimal generator, it indicates the number of cells - 1 to be drawn and these are drawn in a single line; otherwise, it indicates the maximum number of cells per line.</p>
</li>
</ol>
<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">ns := NumericalSemigroup(5,7);; </span>
<span class="GAPprompt">gap></span> <span class="GAPinput">tkz := TikzCodeForNumericalSemigroup(ns,["ns_table"],rec(negatives:=false));</span>
#I In order to highlight some element, please use a list with one or more of the
options given as strings: pseudo_frobenius, min_generators, frobenius_number,
conductor, special_gaps, fundamental_gaps, small_elements
<h5>6.1-2 <span class="Heading">Drawing a numerical semigroup</span></h5>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DrawNumericalSemigroup</code>( <var class="Arg">ns</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This function abbreviates the production of tikz code to display the numerical semigroup <code class="code">ns</code> using some predefined options and elements to highlight (based on the ones of the above example). It also displays the image produced. Note that the production and displaying of the image depends on the function IP_Splash (which can be slow and depends on an appropriate configuration of the system). The output is the tikz code produced.</p>
<h5>6.2-1 <span class="Heading">Set of numerical semigroups</span></h5>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ SetOfNumericalSemigroups</code>( <var class="Arg">arg</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This function is used to produce lists of numerical semigroups with a fixed genus or Frobenius number. They are filtered and ordered according to some criteria.</p>
<p>The argument is a record of options:</p>
<ol>
<li><p>set -- a record whose possible fields are genus or frobenius</p>
</li>
<li><p>(optional) filter -- a record whose possible fields are genus, type and/or multiplicity and/or frobenius and/or embedding_dimension</p>
</li>
<li><p>(optional) order -- ("genus", "type", "multiplicity", "frobenius", "embedding_dimension")</p>
<h5>6.2-2 <span class="Heading">Draw a set of numerical semigroups</span></h5>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DrawSetOfNumericalSemigroups</code>( <var class="Arg">arg</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Produces a single image from the images of a set of numerical semigroups.</p>
<p>The arguments (at most 3) are:</p>
<ol>
<li><p>a list of numerical semigroups (given as a list or each given as argument)</p>
</li>
<li><p>(optional) an integer that (when present) determines the length of each line</p>
</li>
<li><p>(optional) a record whose fields are</p>
<ul>
<li><p>(optional) splash -- which (when present) consists of a record of options for the Viz Splash function</p>
</li>
<li><p>(optional) highlights: a list to be passed to the function that produces the tikz code for each individual semigroup (whose aim is to say which elements are to be highlighted)</p>
<p><br><center><img src="../images/draw_set_pseudo.jpg"></center><br> The following example helps in the understanding of the colors present in the first line of previous figure.</p>