<h4>11.1 <span class="Heading">Operations from AutoDoc</span></h4>
<p>The file functions <code class="code">FindMatchingFiles</code> and <code class="code">CreateDirIfMissing</code> were copied from package <strong class="pkg">AutoDoc</strong> where they are named <code class="code">AutoDoc_FindMatchingFiles</code> and <code class="code">AutoDoc_CreateDirIfMissing</code>.</p>
<p>The string function <code class="code">StringDotSuffix</code> was also copied from package <strong class="pkg">AutoDoc</strong>, where it is named <code class="code">AUTODOC_GetSuffix</code>.</p>
<p>The function <code class="code">SetIfMissing</code> was also transferred from package <strongclass="pkg">AutoDoc</strong>, where it is called <code class="code">AUTODOC_SetIfMissing</code>. It writes into a record provided the position is not yet bound.</p>
<p>As from version 0.61, all these functions became obsolete in <strong class="pkg">Utils</strong>, but continue to be defined in <strong class="pkg">AutoDoc</strong>.</p>
<h4>11.2 <span class="Heading">Functions for printing</span></h4>
<p>The function <code class="code">PrintOneItemPerLine</code> was used to prints lists vertically, rather than horizontally. Since a very similar result may be achieved using the <strong class="pkg">GAP</strong> library functions <code class="code">Perform</code> and <code class="code">Display</code>, this function became obsolete in version 0.61.</p>
<p>The function <code class="code">PrintApplicableMethod</code>, which was included in versions from 0.41 to 0.58, has been removed since it was considered superfluous. The example shows how to print out a function.</p>
<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">ApplicableMethod( IsCyclic, [ Group((1,2,3),(4,5)) ], 1, 1 );</span>
#I Searching Method for IsCyclic with 1 arguments:
#I Total: 7 entries
#I Method 4: ``IsCyclic'' at /Applications/gap/gap4r9/lib/grp.gi:30 , value:
36
function( G ) ... end
<span class="GAPprompt">gap></span> <span class="GAPinput">Print( last );</span>
function ( G )
if Length( GeneratorsOfGroup( G ) ) = 1 then
return true;
else
TryNextMethod();
fi;
return;
end
<span class="GAPprompt">gap></span> <span class="GAPinput">ApplicableMethod( IsCyclic, [ Group((1,2,3),(4,5)) ], 0, 3 );</span>
function( <1 unnamed arguments> ) ... end
<span class="GAPprompt">gap></span> <span class="GAPinput">Print( last ); </span>
function ( <<arg-1>> )
<<compiled GAP code from GAPROOT/lib/oper1.g:578>>
end
<p>The function <code class="code">ExponentOfPrime</code> was originally transferred from package <strong class="pkg">RCWA</strong>. The command <code class="code">ExponentOfPrime(<var class="Arg">n</var>,<var class="Arg">p</var>)</code> returned the exponent of the prime <var class="Arg">p</var> in the prime factorization of <var class="Arg">n</var>.</p>
<p>Since the <strong class="pkg">GAP</strong> function <code class="code">PValuation</code> produces the same results, and does so more quickly, this function has been made obsolete.</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.