Minor edits to session4.
authorPuneeth Chaganti <punchagan@fossee.in>
Fri, 06 Nov 2009 14:28:51 +0530
changeset 285 e072cadee389
parent 284 3c191accbb32
child 286 ac457f7d1702
Minor edits to session4.
day1/session4.tex
--- a/day1/session4.tex	Fri Nov 06 13:53:20 2009 +0530
+++ b/day1/session4.tex	Fri Nov 06 14:28:51 2009 +0530
@@ -74,7 +74,7 @@
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % Title page
-\title[Matrices \& Equations]{Python for Science and Engg: Matrices, Least Square Fit, \& Solution of equations}
+\title[Matrices \& Curve Fitting]{Python for Science and Engg: Matrices \& Least Square Fit}
 
 \author[FOSSEE] {FOSSEE}
 
@@ -277,7 +277,7 @@
 \end{frame}
 
 \begin{frame}[fragile]
-  \frametitle{Slicing \& Striding Exercises \ldots}
+  \frametitle{Solutions}
 \begin{small}
   \begin{lstlisting}
 In []: imshow(A[:256,:256])
@@ -462,8 +462,7 @@
 \frametitle{\typ{lstsq}}
 \begin{itemize}
 \item We need to fit a line through points for the equation $T^2 = m \cdot L+c$
-\item The equation can be re-written as $T^2 = A \cdot p$
-\item where A is   
+\item In matrix form, the equation can be represented as $T^2 = A \cdot p$, where A is   
   $\begin{bmatrix}
   L_1 & 1 \\
   L_2 & 1 \\
@@ -536,13 +535,22 @@
 \end{lstlisting}
 \end{frame}
 
+\begin{frame}[fragile]
+\frametitle{Least Squares Fit}
+\vspace{-0.15in}
+\begin{figure}
+\includegraphics[width=4in]{data/least-sq-fit}
+\end{figure}
+\end{frame}
+
 \section{Summary}
 \begin{frame}
-  \frametitle{What did we learn??}
+  \frametitle{What did we learn?}
   \begin{itemize}
   \item Matrices
     \begin{itemize}
       \item Accessing elements
+      \item Slicing and Striding
       \item Transpose
       \item Addition
       \item Multiplication