|
|
|
|
Quelle chap11_mj.html
Sprache: HTML
|
|
| products/Sources/formale Sprachen/GAP/pkg/utils/doc/chap11_mj.html |
 |
<?xml version= "1.0" encoding= "UTF-8"?>
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns= "http://www.w3.org/1999/xhtml" xml:lang= "en">
< head>
< script type= "text/javascript"
src= "https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</ script>
< title>GAP (Utils) - Chapter 11: Obsolete functions</ title>
< meta http-equiv= "content-type" content= "text/html; charset=UTF-8" />
< meta name= "generator" content= "GAPDoc2HTML" />
< link rel= "stylesheet" type= "text/css" href= "manual.css" />
< script src= "manual.js" type= "text/javascript"></ script>
< script type= "text/javascript">overwriteStyle();</ script>
</ head>
< body class= "chap11" onload= "jscontent()">
< div class= "chlinktop">< span class= "chlink1">Goto Chapter: </ span>< a href= "chap0_mj.html">Top< /a> <a href="chap1_mj.html">1</a> <a href="chap2_mj.html">2</a> <a href="chap3_mj.html">3</a> <a href="chap4_mj.html">4</a> <a href="chap5_mj.html">5</a> <a href="chap6_mj.html">6</a> <a href="chap7_mj.html">7</a> <a href="chap8_mj.html">8</a> <a href="chap9_mj.html">9</a> <a href="chap10_mj.html">10</a> <a href="chap11_mj.html">11</a> <a href="chap12_mj.html">12</a> <a href="chapBib_mj.html">Bib</a> <a href="chapInd_mj.html">Ind</a> </div>
<div class="chlinkprevnexttop"> <a href="chap0_mj.html">[Top of Book]</a> <a href="chap0_mj.html#contents">[Contents]</a> <a href="chap10_mj.html">[Previous Chapter]</a> <a href="chap12_mj.html">[Next Chapter]</a> </div>
<p id="mathjaxlink" class="pcenter"><a href="chap11.html">[MathJax off]</a></p>
<p><a id="X7F561B1D803182FF" name="X7F561B1D803182FF"></a></p>
<div class="ChapSects"><a href="chap11_mj.html#X7F561B1D803182FF">11 <span class="Heading">Obsolete functions</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap11_mj.html#X7A6BB3D084912F35">11.1 <span class="Heading">Operations from AutoDoc</span></a>
</span>
</div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap11_mj.html#X86F322FC7DECE36F">11.2 <span class="Heading">Functions for printing</span></a>
</span>
</div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap11_mj.html#X84A4F0B281FA0F94">11.3 <span class="Heading">Other obsolete functions</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap11_mj.html#X78B7D1A982BE9866">11.3-1 <span class="Heading">Applicable Methods</span></a>
</span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap11_mj.html#X7C1AF2467FB55D79">11.3-2 <span class="Heading">ExponentOfPrime</span></a>
</span>
</div></div>
</div>
<h3>11 <span class="Heading">Obsolete functions</span></h3>
<p><a id="X7A6BB3D084912F35" name="X7A6BB3D084912F35"></a></p>
<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 <strong class="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>
<p><a id="X86F322FC7DECE36F" name="X86F322FC7DECE36F"></a></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>
<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">s3 := SymmetricGroup( 3 );; </span>
<span class="GAPprompt">gap></span> <span class="GAPinput">L := KnownPropertiesOfObject( GeneratorsOfGroup( s3 ) );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">Perform( L, Display );</span>
IsFinite
IsSmallList
IsGeneratorsOfMagmaWithInverses
IsGeneratorsOfSemigroup
IsSubsetLocallyFiniteGroup
<span class="GAPprompt">gap></span> <span class="GAPinput">Perform( s3, Display ); </span>
()
(2,3)
(1,3)
(1,3,2)
(1,2,3)
(1,2)
</pre></div>
<p><a id="X84A4F0B281FA0F94" name="X84A4F0B281FA0F94"></a></p>
<h4>11.3 <span class="Heading">Other obsolete functions</span></h4>
<p><a id="X78B7D1A982BE9866" name="X78B7D1A982BE9866"></a></p>
<h5>11.3-1 <span class="Heading">Applicable Methods</span></h5>
<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
</pre></div>
<p><a id="X7C1AF2467FB55D79" name="X7C1AF2467FB55D79"></a></p>
<h5>11.3-2 <span class="Heading">ExponentOfPrime</span></h5>
<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>
<div class="chlinkprevnextbot"> <a href="chap0_mj.html">[Top of Book]</a> <a href="chap0_mj.html#contents">[Contents]</a> <a href="chap10_mj.html">[Previous Chapter]</a> <a href="chap12_mj.html">[Next Chapter]</a> </div>
<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0_mj.html">Top</a> <a href="chap1_mj.html">1</a> <a href="chap2_mj.html">2</a> <a href="chap3_mj.html">3</a> <a href="chap4_mj.html">4</a> <a href="chap5_mj.html">5</a> <a href="chap6_mj.html">6</a> <a href="chap7_mj.html">7</a> <a href="chap8_mj.html">8</a> <a href="chap9_mj.html">9</a> <a href="chap10_mj.html">10</a> <a href="chap11_mj.html">11</a> <a href="chap12_mj.html">12</a> <a href="chapBib_mj.html">Bib</a> <a href="chapInd_mj.html">Ind</a> </div>
<hr />
<p class="foot">generated by <a href="https://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc">GAPDoc2HTML</a></p>
</body>
</html>
¤ Dauer der Verarbeitung: 0.4 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-01
|
|
|
|
|
Neuigkeiten |
| Aktuelles |
| Motto des Tages |
|
Open Source Software |
|
|
|
Jenseits des Üblichen ....
|
|
Besucherstatistik |
|
|
| Statistik |
| #Sources=1104856 |
| #Domains=417397 |
|
|