CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
1
% generated by GAPDoc2LaTeX from XML source (Frank Luebeck)
2
\documentclass[a4paper,11pt]{report}
3
4
\usepackage{a4wide}
5
\sloppy
6
\pagestyle{myheadings}
7
\usepackage{amssymb}
8
\usepackage[latin1]{inputenc}
9
\usepackage{makeidx}
10
\makeindex
11
\usepackage{color}
12
\definecolor{FireBrick}{rgb}{0.5812,0.0074,0.0083}
13
\definecolor{RoyalBlue}{rgb}{0.0236,0.0894,0.6179}
14
\definecolor{RoyalGreen}{rgb}{0.0236,0.6179,0.0894}
15
\definecolor{RoyalRed}{rgb}{0.6179,0.0236,0.0894}
16
\definecolor{LightBlue}{rgb}{0.8544,0.9511,1.0000}
17
\definecolor{Black}{rgb}{0.0,0.0,0.0}
18
19
\definecolor{linkColor}{rgb}{0.0,0.0,0.554}
20
\definecolor{citeColor}{rgb}{0.0,0.0,0.554}
21
\definecolor{fileColor}{rgb}{0.0,0.0,0.554}
22
\definecolor{urlColor}{rgb}{0.0,0.0,0.554}
23
\definecolor{promptColor}{rgb}{0.0,0.0,0.589}
24
\definecolor{brkpromptColor}{rgb}{0.589,0.0,0.0}
25
\definecolor{gapinputColor}{rgb}{0.589,0.0,0.0}
26
\definecolor{gapoutputColor}{rgb}{0.0,0.0,0.0}
27
28
%% for a long time these were red and blue by default,
29
%% now black, but keep variables to overwrite
30
\definecolor{FuncColor}{rgb}{0.0,0.0,0.0}
31
%% strange name because of pdflatex bug:
32
\definecolor{Chapter }{rgb}{0.0,0.0,0.0}
33
\definecolor{DarkOlive}{rgb}{0.1047,0.2412,0.0064}
34
35
36
\usepackage{fancyvrb}
37
38
\usepackage{mathptmx,helvet}
39
\usepackage[T1]{fontenc}
40
\usepackage{textcomp}
41
42
43
\usepackage[
44
pdftex=true,
45
bookmarks=true,
46
a4paper=true,
47
pdftitle={Written with GAPDoc},
48
pdfcreator={LaTeX with hyperref package / GAPDoc},
49
colorlinks=true,
50
backref=page,
51
breaklinks=true,
52
linkcolor=linkColor,
53
citecolor=citeColor,
54
filecolor=fileColor,
55
urlcolor=urlColor,
56
pdfpagemode={UseNone},
57
]{hyperref}
58
59
\newcommand{\maintitlesize}{\fontsize{50}{55}\selectfont}
60
61
% write page numbers to a .pnr log file for online help
62
\newwrite\pagenrlog
63
\immediate\openout\pagenrlog =\jobname.pnr
64
\immediate\write\pagenrlog{PAGENRS := [}
65
\newcommand{\logpage}[1]{\protect\write\pagenrlog{#1, \thepage,}}
66
%% were never documented, give conflicts with some additional packages
67
68
\newcommand{\GAP}{\textsf{GAP}}
69
70
%% nicer description environments, allows long labels
71
\usepackage{enumitem}
72
\setdescription{style=nextline}
73
74
%% depth of toc
75
\setcounter{tocdepth}{1}
76
77
78
79
80
81
%% command for ColorPrompt style examples
82
\newcommand{\gapprompt}[1]{\color{promptColor}{\bfseries #1}}
83
\newcommand{\gapbrkprompt}[1]{\color{brkpromptColor}{\bfseries #1}}
84
\newcommand{\gapinput}[1]{\color{gapinputColor}{#1}}
85
86
87
\begin{document}
88
89
\logpage{[ 0, 0, 0 ]}
90
\begin{titlepage}
91
\mbox{}\vfill
92
93
\begin{center}{\maintitlesize \textbf{The \textsf{ThreeKPlusOne} Package\mbox{}}}\\
94
\vfill
95
96
\hypersetup{pdftitle=The \textsf{ThreeKPlusOne} Package}
97
\markright{\scriptsize \mbox{}\hfill The \textsf{ThreeKPlusOne} Package \hfill\mbox{}}
98
{\Huge Version 42\mbox{}}\\[1cm]
99
\mbox{}\\[2cm]
100
{\Large \textbf{Dummy Auth{\"o}r \mbox{}}}\\
101
\hypersetup{pdfauthor=Dummy Auth{\"o}r }
102
\end{center}\vfill
103
104
\mbox{}\\
105
{\mbox{}\\
106
\small \noindent \textbf{Dummy Auth{\"o}r } Email: \href{mailto://3kplusone@dev.null} {\texttt{3kplusone@dev.null}}}\\
107
\end{titlepage}
108
109
\newpage\setcounter{page}{2}
110
{\small
111
\section*{Copyright}
112
\logpage{[ 0, 0, 1 ]}
113
{\copyright} 2000 The Author.
114
115
You can do with this package what you want.
116
117
Really. \mbox{}}\\[1cm]
118
\newpage
119
120
\def\contentsname{Contents\logpage{[ 0, 0, 2 ]}}
121
122
\tableofcontents
123
\newpage
124
125
126
\chapter{\textcolor{Chapter }{The $3k+1$ Problem}}\logpage{[ 1, 0, 0 ]}
127
\hyperdef{L}{X8769FB038733F6F4}{}
128
{
129
130
\section{\textcolor{Chapter }{Theory}}\label{sec:theory}
131
\logpage{[ 1, 1, 0 ]}
132
\hyperdef{L}{X8729B87B848E3F89}{}
133
{
134
Let $k \in {\ensuremath{\mathbb N}}$ be a natural number. We consider the sequence $n(i, k), i \in {\ensuremath{\mathbb N}},$ with $n(1, k) = k$ and else $n(i+1, k) = n(i, k) / 2$ if $n(i, k)$ is even and $n(i+1, k) = 3 n(i, k) + 1$ if $n(i, k)$ is odd.
135
136
It is not known whether for any natural number $k \in {\ensuremath{\mathbb N}}$ there is an $m \in {\ensuremath{\mathbb N}}$ with $n(m, k) = 1$.
137
138
\textsf{ThreeKPlusOne} provides the function \texttt{ThreeKPlusOneSequence} (\ref{ThreeKPlusOneSequence}) to explore this for given $n$. If you really want to know something about this problem, see \cite{Wi98} or \href{http://www.ku.de/mgf/mathematik/lehrstuhlstatistik/team/dr-guenther-wirsching/} {\texttt{http://www.ku.de/mgf/mathematik/lehrstuhlstatistik/team/dr-guenther-wirsching/}} for more details (and forget this package). }
139
140
141
\section{\textcolor{Chapter }{Program}}\logpage{[ 1, 2, 0 ]}
142
\hyperdef{L}{X7A4605C07A94C9F6}{}
143
{
144
In this section we describe the main function of this package.
145
146
\subsection{\textcolor{Chapter }{ThreeKPlusOneSequence}}
147
\logpage{[ 1, 2, 1 ]}\nobreak
148
\hyperdef{L}{X7B1A31B8870EA092}{}
149
{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{ThreeKPlusOneSequence({\mdseries\slshape k[, max]})\index{ThreeKPlusOneSequence@\texttt{ThreeKPlusOneSequence}}
150
\label{ThreeKPlusOneSequence}
151
}\hfill{\scriptsize (function)}}\\
152
153
154
This function computes for a natural number \mbox{\texttt{\mdseries\slshape k}} the beginning of the sequence $n(i, k)$ defined in section \ref{sec:theory}. The sequence stops at the first $1$ or at $n(\mbox{\texttt{\mdseries\slshape max}}, k)$, if \mbox{\texttt{\mdseries\slshape max}} is given.
155
\begin{Verbatim}[commandchars=!@|,fontsize=\small,frame=single,label=Example]
156
!gapprompt@gap>| !gapinput@ThreeKPlusOneSequence(101);|
157
"Sorry, not yet implemented. Wait for Version 84 of the package"
158
\end{Verbatim}
159
}
160
161
}
162
163
}
164
165
\def\bibname{References\logpage{[ "Bib", 0, 0 ]}
166
\hyperdef{L}{X7A6F98FD85F02BFE}{}
167
}
168
169
\bibliographystyle{alpha}
170
\bibliography{3k+1}
171
172
\addcontentsline{toc}{chapter}{References}
173
174
\def\indexname{Index\logpage{[ "Ind", 0, 0 ]}
175
\hyperdef{L}{X83A0356F839C696F}{}
176
}
177
178
\cleardoublepage
179
\phantomsection
180
\addcontentsline{toc}{chapter}{Index}
181
182
183
\printindex
184
185
\newpage
186
\immediate\write\pagenrlog{["End"], \arabic{page}];}
187
\immediate\closeout\pagenrlog
188
\end{document}
189
190