summaryrefslogtreecommitdiff
path: root/day1/session4.tex
diff options
context:
space:
mode:
authorPuneeth Chaganti2009-11-06 14:28:51 +0530
committerPuneeth Chaganti2009-11-06 14:28:51 +0530
commitb44abc24754bce262b3c8c16dc3fb3982d3e904e (patch)
tree98f4b0e6f223e69801f361c8a957327224d715ac /day1/session4.tex
parent9715e79a11b73b60a2cc9e83658781a502cb0803 (diff)
downloadworkshops-more-scipy-b44abc24754bce262b3c8c16dc3fb3982d3e904e.tar.gz
workshops-more-scipy-b44abc24754bce262b3c8c16dc3fb3982d3e904e.tar.bz2
workshops-more-scipy-b44abc24754bce262b3c8c16dc3fb3982d3e904e.zip
Minor edits to session4.
Diffstat (limited to 'day1/session4.tex')
-rw-r--r--day1/session4.tex18
1 files changed, 13 insertions, 5 deletions
diff --git a/day1/session4.tex b/day1/session4.tex
index 7a335fd..2d0aa7d 100644
--- a/day1/session4.tex
+++ b/day1/session4.tex
@@ -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 @@ Out[]: (512, 512, 4)
\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 @@ Out[]: array([-1., 8., -1.])
\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 @@ In []: plot(L, Tline)
\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