Debian Codegraph @

texmf-dist/doc/latex/mcmthesis/mcmthesis-demo.tex

raw
1 %%
2 %% This is file `mcmthesis-demo.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% mcmthesis.dtx (with options: `demo')
8 %%
9 %% -----------------------------------
10 %% This is a generated file.
11 %%
12 %% Copyright (C) 2010 -- 2015 by latexstudio
13 %% 2014 -- 2019 by Liam Huang
14 %% 2019 -- present by latexstudio.net
15 %%
16 %% This work may be distributed and/or modified under the
17 %% conditions of the LaTeX Project Public License, either version 1.3
18 %% of this license or (at your option) any later version.
19 %% The latest version of this license is in
20 %% http://www.latex-project.org/lppl.txt
21 %% and version 1.3 or later is part of all distributions of LaTeX
22 %% version 2005/12/01 or later.
23 %%
24 %% The Current Maintainer of this work is latexstudio.net.
25 %%
26 %% !Mode:: "TeX:UTF-8"
27 \documentclass{mcmthesis}
28 %\documentclass[CTeX = true]{mcmthesis} % ^^e5^^bd^^93^^e4^^bd^^bf^^e7^^94^^a8 CTeX ^^e5^^a5^^97^^e8^^a3^^85^^e6^^97^^b6^^e8^^af^^b7^^e6^^b3^^a8^^e9^^87^^8a^^e4^^b8^^8a^^e4^^b8^^80^^e8^^a1^^8c^^e4^^bd^^bf^^e7^^94^^a8^^e8^^af^^a5^^e8^^a1^^8c^^e7^^9a^^84^^e8^^ae^^be^^e7^^bd^^ae
29 \mcmsetup{tstyle=\color{red}\bfseries,%^^e4^^bf^^ae^^e6^^94^^b9^^e9^^a2^^98^^e5^^8f^^b7^^ef^^bc^^8c^^e9^^98^^9f^^e5^^8f^^b7^^e7^^9a^^84^^e9^^a2^^9c^^e8^^89^^b2^^e5^^92^^8c^^e5^^8a^^a0^^e7^^b2^^97^^e6^^98^^be^^e7^^a4^^ba^^ef^^bc^^8c^^e9^^bb^^91^^e8^^89^^b2^^e5^^8f^^af^^e4^^bb^^a5^^e4^^bf^^ae^^e6^^94^^b9^^e4^^b8^^ba black
30 tcn = 0000, problem = A, %^^e4^^bf^^ae^^e6^^94^^b9^^e9^^98^^9f^^e5^^8f^^b7^^ef^^bc^^8c^^e5^^8f^^82^^e8^^b5^^9b^^e9^^a2^^98^^e5^^8f^^b7
31 sheet = true, titleinsheet = true, keywordsinsheet = true,
32 titlepage = false, abstract = true}
33
34 %^^e5^^9b^^9b^^e6^^ac^^be^^e5^^ad^^97^^e4^^bd^^93^^e5^^8f^^af^^e4^^bb^^a5^^e9^^80^^89^^e6^^8b^^a9
35 %\usepackage{times}
36 %\usepackage{newtxtext}
37 %\usepackage{palatino}
38 \usepackage{txfonts}
39
40 \usepackage{indentfirst} %^^e9^^a6^^96^^e8^^a1^^8c^^e7^^bc^^a9^^e8^^bf^^9b^^ef^^bc^^8c^^e6^^b3^^a8^^e9^^87^^8a^^e6^^8e^^89^^ef^^bc^^8c^^e9^^a6^^96^^e8^^a1^^8c^^e5^^b0^^b1^^e4^^b8^^8d^^e5^^86^^8d^^e7^^bc^^a9^^e8^^bf^^9b^^e3^^80^^82
41 \usepackage{lipsum}
42 \title{The \LaTeX{} Template for MCM Version \MCMversion}
43 \author{\small \href{https://www.latexstudio.net/}
44 {\includegraphics[width=7cm]{mcmthesis-logo}}}
45 \date{\today}
46 \begin{document}
47 \begin{abstract}
48 \par Use this template to begin typing the first page (summary page) of your electronic report. This template uses a 12-point Times New Roman font. Submit your paper as an Adobe PDF electronic file (e.g. 1111111.pdf), typed in English, with a readable font of at least 12-point type.
49
50 Do not include the name of your school, advisor, or team members on this or any page.
51
52 Papers must be within the 25 page limit.
53
54 Be sure to change the control number and problem choice above.
55 You may delete these instructions as you begin to type your report here.
56
57 Follow us @COMAPMath on Twitter or COMAPCHINAOFFICIAL on Weibo for the most up to date contest information.
58
59 \begin{keywords}
60 keyword1; keyword2
61 \end{keywords}
62 \end{abstract}
63 \maketitle
64 %% Generate the Table of Contents, if it's needed.
65 \tableofcontents
66 \newpage
67 %%
68 %% Generate the Memorandum, if it's needed.
69 %% \memoto{\LaTeX{}studio}
70 %% \memofrom{Liam Huang}
71 %% \memosubject{Happy \TeX{}ing!}
72 %% \memodate{\today}
73 %% \memologo{\LARGE I'm pretending to be a LOGO!}
74 %% \begin{memo}[Memorandum]
75 %% \lipsum[1-3]
76 %% \end{memo}
77 %%
78 \section{Introduction}
79 \subsection{What's this all about? What's \LaTeX?}
80 \LaTeX\ is a document preparation system which uses the \TeX\
81 typesetting program. It enables you to produce
82 publication-quality documents with great accuracy and
83 consistency. \LaTeX\ works on any computer and produces
84 industry-standard PDF. It is available both in free (open-source)
85 and commercial implementations. \LaTeX\ can be used for any kind
86 of document, but it is especially suited to those with complex
87 structures, repetitive formatting, or notations like
88 mathematics. Install the software from
89 \url{www.tug.org/texlive/}.
90 \subsection{Creating and typesetting your document}
91
92 Follow our WeChat official account for more LaTeX materials and information.
93
94 \centerline{\includegraphics[width=5cm]{qrcodewechat}}
95
96 \subsection{Syntax (how to type \LaTeX\ commands --- these
97 are the rules)}
98
99 \lipsum[3]
100 \begin{itemize}
101 \item the angular velocity of the bat,
102 \item the velocity of the ball, and
103 \item the position of impact along the bat.
104 \end{itemize}
105 \lipsum[4]
106 \emph{center of percussion} [Brody 1986], \lipsum[5]
107
108 \begin{Theorem} \label{thm:latex}
109 \LaTeX
110 \end{Theorem}
111 \begin{Lemma} \label{thm:tex}
112 \TeX .
113 \end{Lemma}
114 \begin{proof}
115 The proof of theorem.
116 \end{proof}
117
118 \subsection{Other Assumptions}
119 \lipsum[6]
120 \begin{itemize}
121 \item
122 \item
123 \item
124 \item
125 \end{itemize}
126
127 \lipsum[7]
128
129 \section{Analysis of the Problem}
130 \begin{figure}[h]
131 \small
132 \centering
133 \includegraphics[width=8cm]{example-image-a}
134 \caption{The name of figure} \label{fig:aa}
135 \end{figure}
136
137 \lipsum[8] \eqref{aa}
138 \begin{equation}
139 a^2 \label{aa}
140 \end{equation}
141
142 \[
143 \begin{pmatrix}{*{20}c}
144 {a_{11} } & {a_{12} } & {a_{13} } \\
145 {a_{21} } & {a_{22} } & {a_{23} } \\
146 {a_{31} } & {a_{32} } & {a_{33} } \\
147 \end{pmatrix}
148 = \frac{{Opposite}}{{Hypotenuse}}\cos ^{ - 1} \theta \arcsin \theta
149 \]
150 \lipsum[9]
151
152 \[
153 p_{j}=\begin{cases} 0,&\text{if $j$ is odd}\\
154 r!\,(-1)^{j/2},&\text{if $j$ is even}
155 \end{cases}
156 \]
157
158 \lipsum[10]
159
160 \[
161 \arcsin \theta =
162 \mathop{{\int\!\!\!\!\!\int\!\!\!\!\!\int}} \limits_\varphi
163 {\mathop {\lim }\limits_{x \to \infty } \frac{{n!}}{{r!\left( {n - r}
164 \right)!}}} \eqno (1)
165 \]
166
167 \section{Calculating and Simplifying the Model }
168 \lipsum[11]
169
170 \section{The Model Results}
171 \lipsum[6]
172
173 \section{Validating the Model}
174 \lipsum[9]
175
176 \section{Conclusions}
177 \lipsum[6]
178
179 \section{A Summary}
180 \lipsum[6]
181
182 \section{Evaluate of the Mode}
183
184 \section{Strengths and weaknesses}
185 \lipsum[12]
186
187 \subsection{Strengths}
188 \begin{itemize}
189 \item \textbf{Applies widely}\\
190 This system can be used for many types of airplanes, and it also
191 solves the interference during the procedure of the boarding
192 airplane,as described above we can get to the optimization
193 boarding time.We also know that all the service is automate.
194 \item \textbf{Improve the quality of the airport service}\\
195 Balancing the cost of the cost and the benefit, it will bring in
196 more convenient for airport and passengers.It also saves many
197 human resources for the airline.
198 \end{itemize}
199
200 \subsection{How to cite?}
201 bibliography cite use \cite{1,2,3}
202
203 AI cite use \AIcite{AI1,AI2,AI3}
204
205 \begin{thebibliography}{99}
206 \bibitem{1} D.~E. KNUTH The \TeX{}book the American
207 Mathematical Society and Addison-Wesley
208 Publishing Company , 1984-1986.
209 \bibitem{2}Lamport, Leslie, \LaTeX{}: `` A Document Preparation System '',
210 Addison-Wesley Publishing Company, 1986.
211 \bibitem{3}\url{https://www.latexstudio.net/}
212 \end{thebibliography}
213
214 \begin{appendices}
215
216 \section{First appendix}
217
218 In addition, your report must include a letter to the Chief Financial Officer (CFO) of the Goodgrant Foundation, Mr. Alpha Chiang, that describes the optimal investment strategy, your modeling approach and major results, and a brief discussion of your proposed concept of a return-on-investment (ROI). This letter should be no more than two pages in length.
219
220 \begin{letter}{Dear, Mr. Alpha Chiang}
221
222 \lipsum[1-2]
223
224 \vspace{\parskip}
225
226 Sincerely yours,
227
228 Your friends
229
230 \end{letter}
231 Here are simulation programmes we used in our model as follow.\\
232
233 \textbf{\textcolor[rgb]{0.98,0.00,0.00}{Input matlab source:}}
234 \lstinputlisting[language=Matlab]{./code/mcmthesis-matlab1.m}
235
236 \section{Second appendix}
237
238 some more text \textcolor[rgb]{0.98,0.00,0.00}{\textbf{Input C++ source:}}
239 \lstinputlisting[language=C++]{./code/mcmthesis-sudoku.cpp}
240
241 \end{appendices}
242
243
244 \AImatter
245
246 \begin{ReportAiUse}{9}
247 \bibitem{AI1}
248 Bing AI\\
249 Query1: write a sort algorithm\\
250 Output: Sure, I can help you with that. Here is a simple implementation of the selection sort algorithm in Python:
251 \begin{lstlisting}[language=python]
252 def selection_sort(arr):
253 for i in range(len(arr)):
254 min_idx = i
255 for j in range(i + 1, len(arr)):
256 if arr[min_idx] > arr[j]:
257 min_idx = j
258 arr[i], arr[min_idx] = arr[min_idx], arr[i]
259 return arr
260 \end{lstlisting}
261 This algorithm sorts an array by repeatedly finding the minimum element from the unsorted part of the array and putting it at the beginning. \href{https://www.geeksforgeeks.org/sorting-algorithms/}{The time complexity of this algorithm is O($n^2$)}.
262
263 There are many other sorting algorithms available such as bubble sort, insertion sort, merge sort, quick sort, heap sort, and more. Each of these algorithms has its own advantages and disadvantages. You can learn more about them on GeeksforGeeks and Programiz.
264
265 I hope this helps!
266
267 \bibitem{AI2}
268 OpenAl Enie (Nov 5, 2023 version, Ernie 4.0)\\
269 Query1: <insert the exact wording of any subsequent input into the Al tool>\\
270 Output: <insert the complete output from the second query>
271
272 \bibitem{AI3}
273 Github CoPilot (Feb 3, 2024 version)\\
274 Query1: <insert the exact wording you input into the Al tool>\\
275 Output: <insert the complete output fron the Al tool>
276
277 \bibitem{AI4}
278 Google Bard (Feb 2,2024 version)\\
279 Query: <insert the exact wording of your query>\\
280 Output: <irsert the complete output from the Al tool>
281
282 \bibitem{AI5}
283 Bing AI\\
284 Query: write a FFT algorithm\\
285 Output: Sure, here is a Python implementation of the Fast Fourier Transform (FFT) algorithm:
286 \begin{lstlisting}[language=python]
287 import numpy as np
288
289 def fft(x):
290 n = len(x)
291 if n == 1:
292 return x
293 even = fft(x[0::2])
294 odd = fft(x[1::2])
295 T = [np.exp(-2j * np.pi * k / n) * odd[k] for k in range(n // 2)]
296 return [even[k] + T[k] for k in range(n // 2)] + [even[k] - T[k] for k in range(n // 2)]
297 \end{lstlisting}
298 The FFT is a widely used algorithm for computing the \textbf{Discrete Fourier Transform (DFT)} of a sequence. It reduces the number of computations needed from O(n$^2$) to O(n log n) 12. The basic idea of the FFT is to apply divide and conquer. We divide the coefficient vector of the polynomial into two vectors, recursively compute the DFT for each of them, and combine the results to compute the DFT of the complete polynomial 3.
299
300 I hope this helps!
301
302 \end{ReportAiUse}
303
304 \end{document}
305 %%
306 %% This work consists of these files mcmthesis.dtx,
307 %% figures/ and
308 %% code/,
309 %% and the derived files mcmthesis.cls,
310 %% mcmthesis-demo.tex,
311 %% README,
312 %% LICENSE,
313 %% mcmthesis.pdf and
314 %% mcmthesis-demo.pdf.
315 %%
316 %% End of file `mcmthesis-demo.tex'.