summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhusudan.C.S2009-11-10 14:33:06 +0530
committerMadhusudan.C.S2009-11-10 14:33:06 +0530
commit1d3e2c94b451d1689556e1626e05564e6a0c0bb5 (patch)
tree0cd5de4d187fdca08b30c963a1da770a45247961
parentf94abe81ebddc438584d82d3beecd095d1883358 (diff)
downloadworkshops-more-scipy-1d3e2c94b451d1689556e1626e05564e6a0c0bb5.tar.gz
workshops-more-scipy-1d3e2c94b451d1689556e1626e05564e6a0c0bb5.tar.bz2
workshops-more-scipy-1d3e2c94b451d1689556e1626e05564e6a0c0bb5.zip
Added final changes to the slides for Calicut workshop of day 1.
-rw-r--r--day1/session2.tex2
-rw-r--r--day1/session3.tex23
2 files changed, 14 insertions, 11 deletions
diff --git a/day1/session2.tex b/day1/session2.tex
index b381818..67b0943 100644
--- a/day1/session2.tex
+++ b/day1/session2.tex
@@ -327,7 +327,7 @@ $ cat pendulum.txt
1.4000e-01 8.3568e-01
1.5000e-01 8.6789e-01
\end{lstlisting}
-\ldots
+\ldots %$
\end{frame}
\begin{frame}[fragile]
diff --git a/day1/session3.tex b/day1/session3.tex
index b64c55b..3db46b3 100644
--- a/day1/session3.tex
+++ b/day1/session3.tex
@@ -144,9 +144,9 @@
\begin{lstlisting}
In []: G = []
In []: for line in open('pendulum.txt'):
- .... points = line.split()
- .... l = float(points[0])
- .... t = float(points[1])
+ .... point = line.split()
+ .... l = float(point[0])
+ .... t = float(point[1])
.... g = 4 * pi * pi * l / t * t
.... G.append(g)
\end{lstlisting}
@@ -166,24 +166,24 @@ total = 0
for g in G:
total += g
-mean_g = total / len(g)
-print "Mean: ", mean_g
+g_mean = total / len(g)
+print "Mean: ", g_mean
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]
\frametitle{Mean ``g''}
\begin{lstlisting}
-mean_g = sum(G) / len(G)
-print "Mean: ", mean_g
+g_mean = sum(G) / len(G)
+print "Mean: ", g_mean
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]
\frametitle{Mean ``g''}
\begin{lstlisting}
-mean_g = mean(G)
-print "Mean: ", mean_g
+g_mean = mean(G)
+print "Mean: ", g_mean
\end{lstlisting}
\inctime{10}
\end{frame}
@@ -248,7 +248,6 @@ print "Mean: ", mean_g
\item File reading
\item Parsing
\item Dictionaries
- \item List enumeration
\item Arrays
\item Statistical operations
\end{itemize}
@@ -321,6 +320,10 @@ science = {}
\item Keys will be region codes
\item Values will be the number students who scored more than 90\% in that region
\end{itemize}
+ \begin{block}{Sample \emph{science} dictionary}
+ \{'A': 729, 'C': 764, 'B': 1120,'E': 414, 'D': 603, 'F': 500\}
+ \end{block}
+
\end{frame}
\begin{frame}[fragile]