Attachment 'CombinatoricsReference.tex'

Download

latex error! exitcode was 1 (signal 0), transscript follows:

This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) (preloaded format=latex)
entering extended mode
(./latex_9dbfb62401fcd3f5375f053d110ea9d3d429745b_p.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 2 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu)))
No file latex_9dbfb62401fcd3f5375f053d110ea9d3d429745b_p.aux.

! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.21 \documentclass
                   {article}

! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.22 \usepackage
                {graphicx}

! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.23 \usepackage
                [landscape]{geometry}

! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.24 \usepackage
                [pdftex]{color}

! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.25 \usepackage
                {url}

! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.26 \usepackage
                {multicol}

! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.27 \usepackage
                {amsmath}

! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.28 \usepackage
                {amsfonts}

! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.45 \begin{document}
                     

! LaTeX Error: Environment multicols* undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.46 \begin{multicols*}
                       {3}
! Undefined control sequence.
<recently read> \url 
                     
l.51 \url
         {http://wiki.sagemath.org/quickref}\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.61 {\ex
         \verb!L = [2,17,3,17]!}\quad an ordered list
! Undefined control sequence.
\ex ->\color 
             {blue}
l.63 {\ex
         \verb!L[i]!}\quad the $i$th element of L\\
! Undefined control sequence.
\warn ->\bf \color 
                   {red}
l.64 \skipin  {\warn
                     lists begin with the 0th element}
! Undefined control sequence.
\ex ->\color 
             {blue}
l.66 {\ex
         \verb!L.append(x)!}\quad adds $x$ to L
! Undefined control sequence.
\ex ->\color 
             {blue}
l.68 {\ex
         \verb!L.remove(x)!}\quad removes $x$ from L
! Undefined control sequence.
\ex ->\color 
             {blue}
l.70 {\ex
         \verb!L[i:j]!}\quad the $i$-th through $(j-1)$-th element of L
! Undefined control sequence.
\ex ->\color 
             {blue}
l.72 {\ex
         \verb!range(a)!}\quad list of integers from $0$ to $a-1$ \\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.73 {\ex
         \verb!range(a,b)!}\quad list of integers from $a$ to $b-1$\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.74 {\ex
         \verb![a..b]!}\quad list of integers from $a$ to $b$\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.75 {\ex
         \verb!range(a,b,c)!}\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.79 {\ex
         \verb!len(L)!}\quad length of L
! Undefined control sequence.
\ex ->\color 
             {blue}
l.81 {\ex
         \verb!M = [i^2 for i in range(13)]!}\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.84 {\ex
         \verb!N = [i^2 for i in range(13) if is_prime(i)]!}\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.87 {\ex
         \verb!M + N!}\quad the concatenation of lists M and N
! Undefined control sequence.
\ex ->\color 
             {blue}
l.89 {\ex
         \verb!sorted(L)!}\quad a sorted version of L (L is not changed)\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.90  {\ex
          \verb!L.sort()!}\quad sorts  L (L is changed)
! Undefined control sequence.
\ex ->\color 
             {blue}
l.92 {\ex
         \verb!set(L)!}\quad an unordered list of unique elements
! Undefined control sequence.
\ex ->\color 
             {blue}
l.106 {\ex
          \verb!Permutations(L)!}  list of permutations of L\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.107 {\ex
          \verb!Permutations(L,2)!}  list of 2-permutations of L\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.108 {\ex
          \verb!Combinations(L)!}  list of all combinations of L (the power ...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.109 {\ex
          \verb!Combinations(L,2)!}  list of 2-combinations of L as lists\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.110 {\ex
          \verb!Partitions(n)!}  list of unordered partitions of $n$\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.111 {\ex
          \verb!Compositions(n)!}  list of compositions (ordered partitions)...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.112 {\ex
          \verb!Subsets(n)!} list of subsets of $\{1,2,\dots n\}$ as sets.
! Undefined control sequence.
\ex ->\color 
             {blue}
l.113 {\ex
          \verb!Subsets(n,k)!} list of $k$-element subsets of $\{1,2,\dots n...

[1]
! Undefined control sequence.
l.118 \columnbreak
                  
! Undefined control sequence.
\ex ->\color 
             {blue}
l.121 {\ex
          \verb!P = posets.BooleanLattice(n)!}  P is the poset of subsets of...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.122 {\ex
          \verb!P = posets.ChainPoset(6)!}  P is a 6 element chain (linear) ...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.123 {\ex
          \verb!P = posets.AntichainPoset(6)!}  P is a 6 element chain (line...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.124 {\ex
          \verb!P = posets.DiamondPoset(8)!} P is an antichain of 6 elements...


Underfull \hbox (badness 10000) in paragraph at lines 121--125

! Undefined control sequence.
\ex ->\color 
             {blue}
l.126 {\ex
          \verb!P = Poset({0:[3],1:[2,3],2:[3,4],3:[4],4:[]!})  Creates a po...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.127 {\ex
          \verb!P = Poset({0:[3],1:[2,3],2:[3,4],3:[4],4:[]!})  Creates a po...


Overfull \hbox (13.71675pt too wide) in paragraph at lines 126--128
[]\OT1/cmr/m/n/12 blue[]\OT1/cmtt/m/n/12 P = Poset({0:[3],1:[2,3],2:[3,4],3:[4]
,4:[]\OT1/cmr/m/n/12 ) Cre-ates a poset where
! Undefined control sequence.
\ex ->\color 
             {blue}
l.132 {\ex
          \verb!P.maximal_chains()!} List of maximal chains of P\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.133 {\ex
          \verb!P.antichains()!} List of antichains of P\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.134 {\ex
          \verb!P.linear_extensions()!} List of linear extensions of P\\

Underfull \hbox (badness 10000) in paragraph at lines 132--135

! Undefined control sequence.
\ex ->\color 
             {blue}
l.140 {\ex
          \verb!binomial(a,b)!}  $\binom{a}{b}$\\
! Undefined control sequence.
<recently read> \binom 
                       
l.140 {\ex\verb!binomial(a,b)!}  $\binom
                                        {a}{b}$\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.141 {\ex
          \verb!list(binomial(8, i) for i in xrange(9))!}  list of biniomial...

! Undefined control sequence.
<recently read> \binom 
                       
l.141 ...niomial coefficients  of the form $\binom
                                                  {8}{i}$ (the 8th row of Pa...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.142 {\ex
          \verb!multinomial(a,b,c,d)!}  $\binom{a+b+c+d}{a,b,c,d}$
! Undefined control sequence.
<recently read> \binom 
                       
l.142 {\ex\verb!multinomial(a,b,c,d)!}  $\binom
                                               {a+b+c+d}{a,b,c,d}$
! Undefined control sequence.
\ex ->\color 
             {blue}
l.145 {\ex
          \verb!p=!} an expanded polynomial in any number of variables\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.146 {\ex
          \verb!p.coefficients()!} returns a list of the coefficients of p.  \\

! Undefined control sequence.
\ex ->\color 
             {blue}
l.147 {\ex
          \verb!p.coefficient(x^2)!} returns the coefficient of $x^2$ in p. \\

Underfull \hbox (badness 10000) in paragraph at lines 145--148

! Undefined control sequence.
\ex ->\color 
             {blue}
l.153 {\ex
          \verb! fibonacci(n)!}  returns the $n$th Fibonacci Number, with $F...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.154 {\ex
          \verb! bell_number(n)!} returns the $n$th Bell Number\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.155 {\ex
          \verb! catalan_number(n)!}  returns the $n$th Catalan Number\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.156 {\ex
          \verb! stirling_number1(n,k)!}  $\left[{n \atop k}\right] $, the S...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.157 {\ex
          \verb! stirling_number2(n,k)!}  $\left\{{n \atop k}\right\} $, the...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.158 {\ex
          \verb! a=sloane.A000045!} sets a as sequence A000045 in Sloane's O...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.158 ...uence A000045 in Sloane's OEIS.  Use {\ex
                                                  \verb! sloane.A <tab>!} fo...


Underfull \hbox (badness 10000) in paragraph at lines 153--159

! Undefined control sequence.
l.165 \columnbreak
                  
[2]
! Undefined control sequence.
\ex ->\color 
             {blue}
l.168 ...ny (many!) examples of graphs.  Type {\ex
                                                  \verb!graphs.!} then press...


Underfull \hbox (badness 10000) in paragraph at lines 168--169

! Undefined control sequence.
\ex ->\color 
             {blue}
l.170 {\ex
          \verb!G.show()!} draws a plot of G.  \\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.171 {\ex
          \verb!G.plot()!} draws a plot of G.  \\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.172 {\ex
          \verb!G = Graph([(1,3),(3,8),(5,2)])!}  creates a graph with speci...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.173 {\ex
          \verb!G = Graph({0:[1,2,3], 2:[4]})!}  creates a graph with listed...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.174 {\ex
          \verb!G = graphs.RandomGNP(n, p)!}  creates a random graph on $n$ ...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.176 {\ex
          \verb!G.add_vertex(v)!}  adds a vertex v to G.  \\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.177 {\ex
          \verb!G.add_edge((a,b))!}  adds an edge (a,b) to G. \\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.178 {\ex
          \verb!G.add_cycle([5,6,7,8])!}  adds a cycle on vertices G  (note:...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.179 {\ex
          \verb!G.delete_vertex(v)!}  deletes the vertex v from G.\\

Underfull \hbox (badness 10000) in paragraph at lines 176--181

! Undefined control sequence.
\ex ->\color 
             {blue}
l.184 {\ex
          \verb!G.is_planar()!}  returns True if G is planar\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.185 {\ex
          \verb!G.is_bipartite()!} returns True if G is bipartite\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.186 {\ex
          \verb!G.is_eulerian()!} returns True if G is Eulerian\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.187 {\ex
          \verb!G.is_hamiltonian()!} returns True if G is Hamiltonian\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.188 {\ex
          \verb!G.is_connected()!} returns True if G is connected  \\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.189 {\ex
          \verb!G.is_isomorphic(H)!} returns True if G and H are isomorphic \\

Underfull \hbox (badness 10000) in paragraph at lines 184--190

! Undefined control sequence.
\ex ->\color 
             {blue}
l.196 {\ex
          \verb!G.size()!}  number of edges of G \\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.197 {\ex
          \verb!G.order()!}  number of vertices of G \\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.198 {\ex
          \verb!G.girth()!}  length of the shortext cycle of G \\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.199 {\ex
          \verb!G.chromatic_polynomial()!} returns the chromatic polynomial ...

! Undefined control sequence.
\ex ->\color 
             {blue}
l.200 {\ex
          \verb!G.automorphism_group(G)!} returns the autmorphism group of G \\


Underfull \hbox (badness 10000) in paragraph at lines 196--201

! Undefined control sequence.
l.204 \columnbreak
                  
! Undefined control sequence.
l.213 \includegraphics
                      [scale=.4]{sage0.png} \\
! Undefined control sequence.
l.217 \includegraphics
                      [scale=.4]{sage1.png} \\
! Undefined control sequence.
l.221 \includegraphics
                      [scale=.4]{sage2.png} \\
! Undefined control sequence.
l.227 \columnbreak
                  
! Undefined control sequence.
l.231 \includegraphics
                      [scale=.5]{sage3.png}\\
[3]
! Undefined control sequence.
\ex ->\color 
             {blue}
l.241 ``tab-completion'' on{\ex
                               \verb!  <object.>!} for all relevant methods\\
! Undefined control sequence.
\ex ->\color 
             {blue}
l.242 {\ex
          \verb!<command>?!} for summary and examples\\

Underfull \hbox (badness 10000) in paragraph at lines 240--243


! LaTeX Error: \begin{document} on input line 45 ended by \end{multicols*}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.245 \end{multicols*}
                      
[4] (./latex_9dbfb62401fcd3f5375f053d110ea9d3d429745b_p.aux) )
(\end occurred inside a group at level 1)

### semi simple group (level 1) entered at line 45 (\begingroup)
### bottom level
(see the transcript file for additional information)
Output written on latex_9dbfb62401fcd3f5375f053d110ea9d3d429745b_p.dvi (4 pages
, 8056 bytes).
Transcript written on latex_9dbfb62401fcd3f5375f053d110ea9d3d429745b_p.log.

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.