File: chap11_mj.html

package info (click to toggle)
gap-utils 0.93-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,504 kB
  • sloc: xml: 2,167; javascript: 155; makefile: 105
file content (139 lines) | stat: -rw-r--r-- 8,162 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?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">&nbsp;<a href="chap0_mj.html">[Top of Book]</a>&nbsp;  <a href="chap0_mj.html#contents">[Contents]</a>&nbsp;  &nbsp;<a href="chap10_mj.html">[Previous Chapter]</a>&nbsp;  &nbsp;<a href="chap12_mj.html">[Next Chapter]</a>&nbsp;  </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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;&nbsp;</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">&nbsp;&nbsp;</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&gt;</span> <span class="GAPinput">s3 := SymmetricGroup( 3 );; </span>
<span class="GAPprompt">gap&gt;</span> <span class="GAPinput">L := KnownPropertiesOfObject( GeneratorsOfGroup( s3 ) );;</span>
<span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Perform( L, Display );</span>
IsFinite
IsSmallList
IsGeneratorsOfMagmaWithInverses
IsGeneratorsOfSemigroup
IsSubsetLocallyFiniteGroup
<span class="GAPprompt">gap&gt;</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&gt;</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&gt;</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&gt;</span> <span class="GAPinput">ApplicableMethod( IsCyclic, [ Group((1,2,3),(4,5)) ], 0, 3 );</span>
function( &lt;1 unnamed arguments&gt; ) ... end
<span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Print( last );                                               </span>
function ( &lt;&lt;arg-1&gt;&gt; )
    &lt;&lt;compiled GAP code from GAPROOT/lib/oper1.g:578&gt;&gt;
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">&nbsp;<a href="chap0_mj.html">[Top of Book]</a>&nbsp;  <a href="chap0_mj.html#contents">[Contents]</a>&nbsp;  &nbsp;<a href="chap10_mj.html">[Previous Chapter]</a>&nbsp;  &nbsp;<a href="chap12_mj.html">[Next Chapter]</a>&nbsp;  </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>