equal
deleted
inserted
replaced
116 |
116 |
117 \begin{frame} |
117 \begin{frame} |
118 \titlepage |
118 \titlepage |
119 \end{frame} |
119 \end{frame} |
120 |
120 |
121 \begin{frame} |
121 %% \begin{frame} |
122 \frametitle{Outline} |
122 %% \frametitle{Outline} |
123 \tableofcontents |
123 %% \tableofcontents |
124 % \pausesections |
124 %% % \pausesections |
125 \end{frame} |
125 %% \end{frame} |
|
126 |
|
127 |
|
128 \section{\typ{loadtxt}} |
|
129 |
|
130 \begin{frame}[fragile] |
|
131 \frametitle{\typ{loadtxt}} |
|
132 \begin{itemize} |
|
133 \item Load data from a text file. |
|
134 \item Each row must have same number of values. |
|
135 \end{itemize} |
|
136 \begin{lstlisting} |
|
137 In []: data = loadtxt('pendulum.txt') |
|
138 In []: L = data[:,0] |
|
139 In []: T = data[:,1] |
|
140 \end{lstlisting} |
|
141 \end{frame} |
|
142 |
|
143 %% \begin{frame}[fragile] |
|
144 %% \frametitle{\typ{loadtxt}} |
|
145 %% \end{frame} |
126 |
146 |
127 \section{Interpolation} |
147 \section{Interpolation} |
128 |
|
129 \begin{frame}[fragile] |
148 \begin{frame}[fragile] |
130 \frametitle{Interpolation} |
149 \frametitle{Interpolation} |
131 \begin{itemize} |
150 \begin{itemize} |
132 \item Given data file \typ{points.txt}. |
151 \item Given data file \typ{points.txt}. |
133 \item It contains x,y position of particle. |
152 \item It contains x,y position of particle. |
141 Out[]: (40, 2) |
160 Out[]: (40, 2) |
142 In []: x = data[:,0] |
161 In []: x = data[:,0] |
143 In []: y = data[:,1] |
162 In []: y = data[:,1] |
144 In []: plot(x, y, '.') |
163 In []: plot(x, y, '.') |
145 \end{lstlisting} |
164 \end{lstlisting} |
146 \end{frame} |
|
147 |
|
148 \begin{frame} |
|
149 \frametitle{\typ{loadtxt}} |
|
150 \begin{itemize} |
|
151 \item Load data from a text file. |
|
152 \item Each row must have same number of values. |
|
153 \end{itemize} |
|
154 \end{frame} |
165 \end{frame} |
155 |
166 |
156 %% \begin{frame}[fragile] |
167 %% \begin{frame}[fragile] |
157 %% \frametitle{Interpolation \ldots} |
168 %% \frametitle{Interpolation \ldots} |
158 %% \begin{small} |
169 %% \begin{small} |