equal
deleted
inserted
replaced
71 % postbreak = \space\dots |
71 % postbreak = \space\dots |
72 % } |
72 % } |
73 |
73 |
74 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
74 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
75 % Title page |
75 % Title page |
76 \title[Statistics]{Python for Scienc and Engg: Statistics} |
76 \title[Statistics]{Python for Science and Engg: Statistics} |
77 |
77 |
78 \author[FOSSEE] {FOSSEE} |
78 \author[FOSSEE] {FOSSEE} |
79 |
79 |
80 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay} |
80 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay} |
81 |
81 |
82 \date[] {08 March, 2010\\Day 1, Session 3} |
82 \date[] {02 April, 2010\\Day 1, Session 3} |
83 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
83 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
84 |
84 |
85 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo} |
85 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo} |
86 %\logo{\pgfuseimage{iitmlogo}} |
86 %\logo{\pgfuseimage{iitmlogo}} |
87 |
87 |
143 \frametitle{Acceleration due to gravity - ``g''\ldots} |
143 \frametitle{Acceleration due to gravity - ``g''\ldots} |
144 \begin{lstlisting} |
144 \begin{lstlisting} |
145 In []: g_list = [] |
145 In []: g_list = [] |
146 In []: for line in open('pendulum.txt'): |
146 In []: for line in open('pendulum.txt'): |
147 .... point = line.split() |
147 .... point = line.split() |
148 .... l = float(point[0]) |
148 .... L = float(point[0]) |
149 .... t = float(point[1]) |
149 .... t = float(point[1]) |
150 .... g = 4 * pi * pi * l / (t * t) |
150 .... g = 4 * pi * pi * L / (t * t) |
151 .... g_list.append(g) |
151 .... g_list.append(g) |
152 \end{lstlisting} |
152 \end{lstlisting} |
153 \end{frame} |
153 \end{frame} |
154 |
154 |
155 \begin{frame}[fragile] |
155 \begin{frame}[fragile] |
272 \begin{frame}[fragile] |
272 \begin{frame}[fragile] |
273 \frametitle{Dictionaries \ldots} |
273 \frametitle{Dictionaries \ldots} |
274 \begin{lstlisting} |
274 \begin{lstlisting} |
275 In []: d = {'png' : 'image file', |
275 In []: d = {'png' : 'image file', |
276 'txt' : 'text file', |
276 'txt' : 'text file', |
277 'py' : 'python code' |
277 'py' : 'python code', |
278 'java': 'bad code', |
278 'java': 'bad code', |
279 'cpp': 'complex code'} |
279 'cpp': 'complex code'} |
280 |
280 |
281 In []: d['txt'] |
281 In []: d['txt'] |
282 Out[]: 'text file' |
282 Out[]: 'text file' |
294 \end{lstlisting} |
294 \end{lstlisting} |
295 \end{frame} |
295 \end{frame} |
296 |
296 |
297 \begin{frame}[fragile] |
297 \begin{frame}[fragile] |
298 \frametitle{Dictionaries \ldots} |
298 \frametitle{Dictionaries \ldots} |
299 \begin{lstlisting} |
299 \begin{small} |
|
300 \begin{lstlisting} |
300 In []: d.keys() |
301 In []: d.keys() |
301 Out[]: ['py', 'txt', 'jpg'] |
302 Out[]: ['cpp', 'py', 'txt', 'java', 'png'] |
302 |
303 |
303 In []: d.values() |
304 In []: d.values() |
304 Out[]: ['python code', 'text file', |
305 Out[]: ['complex code', 'python code', |
305 'image file'] |
306 'text file', 'bad code', |
306 \end{lstlisting} |
307 'image file'] |
|
308 \end{lstlisting} |
|
309 \end{small} |
307 \inctime{10} |
310 \inctime{10} |
308 \end{frame} |
311 \end{frame} |
309 |
312 |
310 \begin{frame}[fragile] |
313 \begin{frame}[fragile] |
311 \frametitle{Getting back to the problem} |
314 \frametitle{Getting back to the problem} |