CoCalc Public Filestmp / 2014-12-15-052620.tex
Authors: Harald Schilly, ℏal Snyder, William A. Stein
1
2% Default to the notebook output style
3
4
5
6
7% Inherit from the specified cell style.
8
9
10
11
12
13\documentclass{article}
14
15
16
17    \usepackage{graphicx} % Used to insert images
18    \usepackage{adjustbox} % Used to constrain images to a maximum size
19    \usepackage{color} % Allow colors to be defined
20    \usepackage{enumerate} % Needed for markdown enumerations to work
21    \usepackage{geometry} % Used to adjust the document margins
22    \usepackage{amsmath} % Equations
23    \usepackage{amssymb} % Equations
24    \usepackage[mathletters]{ucs} % Extended unicode (utf-8) support
25    \usepackage[utf8x]{inputenc} % Allow utf-8 characters in the tex document
26    \usepackage{fancyvrb} % verbatim replacement that allows latex
27    \usepackage{grffile} % extends the file name processing of package graphics
28                         % to support a larger range
29    % The hyperref package gives us a pdf with properly built
32    \usepackage{hyperref}
33    \usepackage{longtable} % longtable support required by pandoc >1.10
34    \usepackage{booktabs}  % table support for pandoc > 1.12.2
35
36
37
38
39    \definecolor{orange}{cmyk}{0,0.4,0.8,0.2}
40    \definecolor{darkorange}{rgb}{.71,0.21,0.01}
41    \definecolor{darkgreen}{rgb}{.12,.54,.11}
42    \definecolor{myteal}{rgb}{.26, .44, .56}
43    \definecolor{gray}{gray}{0.45}
44    \definecolor{lightgray}{gray}{.95}
45    \definecolor{mediumgray}{gray}{.8}
46    \definecolor{inputbackground}{rgb}{.95, .95, .85}
47    \definecolor{outputbackground}{rgb}{.95, .95, .95}
48    \definecolor{traceback}{rgb}{1, .95, .95}
49    % ansi colors
50    \definecolor{red}{rgb}{.6,0,0}
51    \definecolor{green}{rgb}{0,.65,0}
52    \definecolor{brown}{rgb}{0.6,0.6,0}
53    \definecolor{blue}{rgb}{0,.145,.698}
54    \definecolor{purple}{rgb}{.698,.145,.698}
55    \definecolor{cyan}{rgb}{0,.698,.698}
56    \definecolor{lightgray}{gray}{0.5}
57
58    % bright ansi colors
59    \definecolor{darkgray}{gray}{0.25}
60    \definecolor{lightred}{rgb}{1.0,0.39,0.28}
61    \definecolor{lightgreen}{rgb}{0.48,0.99,0.0}
62    \definecolor{lightblue}{rgb}{0.53,0.81,0.92}
63    \definecolor{lightpurple}{rgb}{0.87,0.63,0.87}
64    \definecolor{lightcyan}{rgb}{0.5,1.0,0.83}
65
66    % commands and environments needed by pandoc snippets
67    % extracted from the output of pandoc -s
68    \DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
69    % Add ',fontsize=\small' for more characters per line
71    \newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{{#1}}}}
72    \newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.56,0.13,0.00}{{#1}}}
73    \newcommand{\DecValTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
74    \newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
75    \newcommand{\FloatTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
76    \newcommand{\CharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
77    \newcommand{\StringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
78    \newcommand{\CommentTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textit{{#1}}}}
79    \newcommand{\OtherTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{{#1}}}
81    \newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.02,0.16,0.49}{{#1}}}
82    \newcommand{\RegionMarkerTok}[1]{{#1}}
83    \newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}}
84    \newcommand{\NormalTok}[1]{{#1}}
85
86    % Define a nice break command that doesn't care if a line doesn't already
87    % exist.
88    \def\br{\hspace*{\fill} \\* }
89    % Math Jax compatability definitions
90    \def\gt{>}
91    \def\lt{<}
92    % Document parameters
93    \title{2014-12-15-052620}
94
95
96
97
98    % Pygments definitions
99
100\makeatletter
101\def\[email protected]{\let\[email protected]=\relax \let\[email protected]=\relax%
102    \let\[email protected]=\relax \let\[email protected]=\relax%
103    \let\[email protected]=\relax \let\[email protected]=\relax}
104\def\[email protected]#1{\csname PY@tok@#1\endcsname}
105\def\[email protected]#1+{\ifx\relax#1\empty\else%
106    \[email protected]{#1}\expandafter\[email protected]\fi}
107\def\[email protected]#1{\[email protected]{\[email protected]{\[email protected]{%
108    \[email protected]{\[email protected]{\[email protected]{#1}}}}}}}
109\def\PY#1#2{\[email protected]\[email protected]#1+\relax+\[email protected]{#2}}
110
111\def\[email protected]@gd{\def\[email protected]##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}}
112\def\[email protected]@gu{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}}
113\def\[email protected]@gt{\def\[email protected]##1{\textcolor[rgb]{0.00,0.25,0.82}{##1}}}
114\def\[email protected]@gs{\let\[email protected]=\textbf}
115\def\[email protected]@gr{\def\[email protected]##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}}
116\def\[email protected]@cm{\let\[email protected]=\textit\def\[email protected]##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
117\def\[email protected]@vg{\def\[email protected]##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
118\def\[email protected]@m{\def\[email protected]##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
119\def\[email protected]@mh{\def\[email protected]##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
120\def\[email protected]@go{\def\[email protected]##1{\textcolor[rgb]{0.50,0.50,0.50}{##1}}}
121\def\[email protected]@ge{\let\[email protected]=\textit}
122\def\[email protected]@vc{\def\[email protected]##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
123\def\[email protected]@il{\def\[email protected]##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
124\def\[email protected]@cs{\let\[email protected]=\textit\def\[email protected]##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
125\def\[email protected]@cp{\def\[email protected]##1{\textcolor[rgb]{0.74,0.48,0.00}{##1}}}
126\def\[email protected]@gi{\def\[email protected]##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}}
127\def\[email protected]@gh{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
128\def\[email protected]@ni{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.60,0.60,0.60}{##1}}}
129\def\[email protected]@nl{\def\[email protected]##1{\textcolor[rgb]{0.63,0.63,0.00}{##1}}}
130\def\[email protected]@nn{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
131\def\[email protected]@no{\def\[email protected]##1{\textcolor[rgb]{0.53,0.00,0.00}{##1}}}
132\def\[email protected]@na{\def\[email protected]##1{\textcolor[rgb]{0.49,0.56,0.16}{##1}}}
133\def\[email protected]@nb{\def\[email protected]##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
134\def\[email protected]@nc{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
135\def\[email protected]@nd{\def\[email protected]##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
136\def\[email protected]@ne{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.82,0.25,0.23}{##1}}}
137\def\[email protected]@nf{\def\[email protected]##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
138\def\[email protected]@si{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
139\def\[email protected]@s2{\def\[email protected]##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
140\def\[email protected]@vi{\def\[email protected]##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
141\def\[email protected]@nt{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
142\def\[email protected]@nv{\def\[email protected]##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
143\def\[email protected]@s1{\def\[email protected]##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
144\def\[email protected]@sh{\def\[email protected]##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
145\def\[email protected]@sc{\def\[email protected]##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
146\def\[email protected]@sx{\def\[email protected]##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
147\def\[email protected]@bp{\def\[email protected]##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
148\def\[email protected]@c1{\let\[email protected]=\textit\def\[email protected]##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
149\def\[email protected]@kc{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
150\def\[email protected]@c{\let\[email protected]=\textit\def\[email protected]##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
151\def\[email protected]@mf{\def\[email protected]##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
152\def\[email protected]@err{\def\[email protected]##1{\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{##1}}}
153\def\[email protected]@kd{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
154\def\[email protected]@ss{\def\[email protected]##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
155\def\[email protected]@sr{\def\[email protected]##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
156\def\[email protected]@mo{\def\[email protected]##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
157\def\[email protected]@kn{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
158\def\[email protected]@mi{\def\[email protected]##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
159\def\[email protected]@gp{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
160\def\[email protected]@o{\def\[email protected]##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
161\def\[email protected]@kr{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
162\def\[email protected]@s{\def\[email protected]##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
163\def\[email protected]@kp{\def\[email protected]##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
164\def\[email protected]@w{\def\[email protected]##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}}
165\def\[email protected]@kt{\def\[email protected]##1{\textcolor[rgb]{0.69,0.00,0.25}{##1}}}
166\def\[email protected]@ow{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
167\def\[email protected]@sb{\def\[email protected]##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
168\def\[email protected]@k{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
169\def\[email protected]@se{\let\[email protected]=\textbf\def\[email protected]##1{\textcolor[rgb]{0.73,0.40,0.13}{##1}}}
170\def\[email protected]@sd{\let\[email protected]=\textit\def\[email protected]##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
171
172\def\PYZbs{\char\\}
173\def\PYZus{\char\_}
174\def\PYZob{\char\{}
175\def\PYZcb{\char\}}
176\def\PYZca{\char\^}
177% for compatibility with earlier versions
178\def\PYZat{@}
179\def\PYZlb{[}
180\def\PYZrb{]}
181\makeatother
182
183
184    % Exact colors from NB
185    \definecolor{incolor}{rgb}{0.0, 0.0, 0.5}
186    \definecolor{outcolor}{rgb}{0.545, 0.0, 0.0}
187
188
189
190
191    % Prevent overflowing lines due to hard-to-break entities
192    \sloppy
193    % Setup hyperref package
194    \hypersetup{
195      breaklinks=true,  % so long urls are correctly broken across lines
197      urlcolor=blue,
199      citecolor=darkgreen,
200      }
201    % Slightly bigger margins than the latex defaults
202
203    \geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in}
204
205
206
207    \begin{document}
208
209
210    \maketitle
211
212
213
214
215    https://cloud.sagemath.com/4a5f0542-5873-4eed-a85c-a18c706e8bcd/port/3664/notebooks/tmp/2014-12-15-052620.ipynb
216
217https://cloud.sagemath.com/4a5f0542-5873-4eed-a85c-a18c706e8bcd/port/57401/notebooks/tmp/2014-12-15-052620.ipynb
218
219    \begin{Verbatim}[commandchars=\\\{\}]
220{\color{incolor}In [{\color{incolor}6}]:} \PY{l+m+mi}{1}\PY{o}{+}\PY{l+m+mi}{1}
221\end{Verbatim}
222
223            \begin{Verbatim}[commandchars=\\\{\}]
224{\color{outcolor}Out[{\color{outcolor}6}]:} 2
225\end{Verbatim}
226
227    \begin{Verbatim}[commandchars=\\\{\}]
228{\color{incolor}In [{\color{incolor}32}]:} \PY{n}{a} \PY{o}{=} \PY{l+m+mi}{1230} \PY{o}{+} \PY{l+m+mi}{1456} \PY{o}{+} \PY{l+m+mi}{11}
229         \PY{n}{a}
230\end{Verbatim}
231
232            \begin{Verbatim}[commandchars=\\\{\}]
233{\color{outcolor}Out[{\color{outcolor}32}]:} 2697
234\end{Verbatim}
235
236    \begin{Verbatim}[commandchars=\\\{\}]
237{\color{incolor}In [{\color{incolor}7}]:} \PY{c}{#test}
238        \PY{n}{plot}\PY{p}{(}\PY{p}{[}\PY{l+m+mi}{1}\PY{p}{,}\PY{l+m+mi}{2}\PY{p}{,}\PY{l+m+mi}{3}\PY{p}{,}\PY{l+m+mi}{4}\PY{p}{,}\PY{l+m+mi}{5}\PY{p}{,}\PY{l+m+mi}{10}\PY{p}{,}\PY{l+m+mi}{20}\PY{p}{,}\PY{l+m+mi}{200}\PY{p}{,}\PY{l+m+mi}{10}\PY{p}{,}\PY{l+m+mi}{0}\PY{p}{,} \PY{l+m+mi}{100}\PY{p}{]}\PY{p}{)}
239\end{Verbatim}
240
241            \begin{Verbatim}[commandchars=\\\{\}]
242{\color{outcolor}Out[{\color{outcolor}7}]:} [<matplotlib.lines.Line2D at 0x7f5b722a7190>]
243\end{Verbatim}
244
245    \begin{center}
247    \end{center}
248    { \hspace*{\fill} \\}
249
250    $\alpha^\pi$
251
252    \begin{Verbatim}[commandchars=\\\{\}]
253{\color{incolor}In [{\color{incolor}11}]:} \PY{l+m+mi}{42}\PY{o}{+}\PY{l+m+mi}{30}
254\end{Verbatim}
255
256            \begin{Verbatim}[commandchars=\\\{\}]
257{\color{outcolor}Out[{\color{outcolor}11}]:} 72
258\end{Verbatim}
259
260    \begin{Verbatim}[commandchars=\\\{\}]
262\end{Verbatim}
263
264    \begin{Verbatim}[commandchars=\\\{\}]
265{\color{incolor}In [{\color{incolor}5}]:} \PY{o}{%}\PY{k}{R} \PY{n}{X}\PY{o}{=}\PY{n}{c}\PY{p}{(}\PY{l+m+mi}{1}\PY{p}{,}\PY{l+m+mi}{4}\PY{p}{,}\PY{l+m+mi}{5}\PY{p}{,}\PY{l+m+mi}{7}\PY{p}{,}\PY{l+m+mi}{20}\PY{p}{)}\PY{p}{;} \PY{n}{sd}\PY{p}{(}\PY{n}{X}\PY{p}{)}\PY{p}{;} \PY{n}{mean}\PY{p}{(}\PY{n}{X}\PY{p}{)}
266\end{Verbatim}
267
268            \begin{Verbatim}[commandchars=\\\{\}]
269{\color{outcolor}Out[{\color{outcolor}5}]:} array([ 7.4])
270\end{Verbatim}
271
272    \begin{Verbatim}[commandchars=\\\{\}]
273{\color{incolor}In [{\color{incolor}20}]:} \PY{l+m+mi}{2}\PY{o}{+}\PY{l+m+mi}{100}
274\end{Verbatim}
275
276            \begin{Verbatim}[commandchars=\\\{\}]
277{\color{outcolor}Out[{\color{outcolor}20}]:} 102
278\end{Verbatim}
279
280    \begin{Verbatim}[commandchars=\\\{\}]
281{\color{incolor}In [{\color{incolor}22}]:} \PY{o}{%%}\PY{k}{R}
282         \PY{n}{c}\PY{p}{(}\PY{l+m+mi}{1}\PY{p}{,}\PY{l+m+mi}{2}\PY{p}{,}\PY{l+m+mi}{3}\PY{p}{)}
283\end{Verbatim}
284
285
286    \begin{verbatim}
287[1] 1 2 3
288
289    \end{verbatim}
290
291
292    \begin{Verbatim}[commandchars=\\\{\}]
293{\color{incolor}In [{\color{incolor}12}]:} \PY{n}{c}\PY{p}{(}\PY{l+m+mi}{1}\PY{p}{,}\PY{l+m+mi}{2}\PY{p}{,}\PY{l+m+mi}{3}\PY{p}{)}
294\end{Verbatim}
295
296    \begin{Verbatim}[commandchars=\\\{\}]
297
298        ---------------------------------------------------------------------------
299    NameError                                 Traceback (most recent call last)
300
301        <ipython-input-12-3786a8804255> in <module>()
302    ----> 1 c(1,2,3)
303
304
305        NameError: name 'c' is not defined
306
307    \end{Verbatim}
308
309    \begin{Verbatim}[commandchars=\\\{\}]
310{\color{incolor}In [{\color{incolor}37}]:} \PY{k+kn}{import} \PY{n+nn}{time}
311         \PY{k}{for} \PY{n}{i} \PY{o+ow}{in} \PY{n+nb}{range}\PY{p}{(}\PY{l+m+mi}{10}\PY{p}{)}\PY{p}{:}
312             \PY{n}{time}\PY{o}{.}\PY{n}{sleep}\PY{p}{(}\PY{l+m+mi}{10}\PY{p}{)}
313             \PY{k}{print} \PY{n}{i}
314\end{Verbatim}
315
316    \begin{Verbatim}[commandchars=\\\{\}]
317
318        ---------------------------------------------------------------------------
319    KeyboardInterrupt                         Traceback (most recent call last)
320
321        <ipython-input-37-b77f6134bc18> in <module>()
322          1 import time
323          2 for i in range(10):
324    ----> 3     time.sleep(10)
325          4     print i
326
327
328        KeyboardInterrupt:
329
330    \end{Verbatim}
331
332    \begin{Verbatim}[commandchars=\\\{\}]
333{\color{incolor}In [{\color{incolor}38}]:} \PY{l+m+mi}{2}\PY{o}{+}\PY{l+m+mi}{50}
334\end{Verbatim}
335
336            \begin{Verbatim}[commandchars=\\\{\}]
337{\color{outcolor}Out[{\color{outcolor}38}]:} 52
338\end{Verbatim}
339
340    \begin{Verbatim}[commandchars=\\\{\}]
341{\color{incolor}In [{\color{incolor}}]:} \PY{l+m+mi}{2}\PY{o}{+}\PY{l+m+mi}{3}
342\end{Verbatim}
343
344
345    % Add a bibliography block to the postdoc
346
347
348
349    \end{document}
350
`