day1/session5.tex
changeset 259 bb77a470e00a
parent 256 a06196a05043
child 260 1f5fea506927
child 261 9cce24d00957
--- a/day1/session5.tex	Thu Oct 29 00:17:49 2009 +0530
+++ b/day1/session5.tex	Thu Oct 29 00:39:33 2009 +0530
@@ -118,14 +118,33 @@
   \titlepage
 \end{frame}
 
-\begin{frame}
-  \frametitle{Outline}
-  \tableofcontents
-%  \pausesections
+%% \begin{frame}
+%%   \frametitle{Outline}
+%%   \tableofcontents
+%% %  \pausesections
+%% \end{frame}
+
+
+\section{\typ{loadtxt}}
+
+\begin{frame}[fragile]
+  \frametitle{\typ{loadtxt}}
+  \begin{itemize}
+  \item Load data from a text file.
+  \item Each row must have same number of values.
+  \end{itemize}
+\begin{lstlisting}
+In []: data = loadtxt('pendulum.txt')
+In []: L = data[:,0]
+In []: T = data[:,1]
+\end{lstlisting}
 \end{frame}
 
+%% \begin{frame}[fragile]
+%%   \frametitle{\typ{loadtxt}}
+%% \end{frame}
+
 \section{Interpolation}
-
 \begin{frame}[fragile]
 \frametitle{Interpolation}
 \begin{itemize}
@@ -145,14 +164,6 @@
 \end{lstlisting}
 \end{frame}
 
-\begin{frame}
-  \frametitle{\typ{loadtxt}}
-  \begin{itemize}
-  \item Load data from a text file.
-  \item Each row must have same number of values.
-  \end{itemize}
-\end{frame}
-
 %% \begin{frame}[fragile]
 %% \frametitle{Interpolation \ldots}
 %% \begin{small}