day1/session3.tex
changeset 178 8a3a9d98fa84
parent 174 a43832c1edc2
child 184 9efa777af2e2
--- a/day1/session3.tex	Mon Oct 26 20:44:54 2009 +0530
+++ b/day1/session3.tex	Tue Oct 27 10:59:11 2009 +0530
@@ -308,28 +308,20 @@
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{Least Squares Fit}
-\vspace{-0.15in}
-\begin{figure}
-\includegraphics[width=4in]{data/least-sq-fit.png}
-\end{figure}
-\end{frame}
-
-\begin{frame}[fragile]
-\frametitle{Calculating $T^2$ Efficiently}
+\frametitle{Dealing with data whole-sale}
 \begin{lstlisting}
 In []: for t in T:
  ....:     Tsq.append(t*t)
 \end{lstlisting}
 \begin{itemize}
 \item This is not very efficient
-\item We use arrays to make it efficient
+\item We are squaring element after element
+\item We use arrays to make this efficient
 \end{itemize}
 \begin{lstlisting}
 In []: L = array(L)
 In []: T = array(T)
 In []: Tsq = T*T
-In []: plot(L, Tsq, 'o')
 \end{lstlisting}
 \end{frame}
 
@@ -344,6 +336,22 @@
 \end{itemize}
 \end{frame}
 
+\begin{frame}[fragile]
+\frametitle{Least Squares Fit}
+\vspace{-0.15in}
+\begin{figure}
+\includegraphics[width=4in]{data/L-Tsq-Line.png}
+\end{figure}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{Least Squares Fit}
+\vspace{-0.15in}
+\begin{figure}
+\includegraphics[width=4in]{data/least-sq-fit.png}
+\end{figure}
+\end{frame}
+
 \begin{frame}
 \frametitle{Least Square Fit Curve}
 \begin{itemize}