diff options
author | Puneeth Chaganti | 2009-10-23 12:13:16 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2009-10-23 12:13:16 +0530 |
commit | d3ecdfcc33d02be85b09b07bfb48637d3bd23778 (patch) | |
tree | 726885925e2811ec0d6890935bb6d08992e34f5e /day1 | |
parent | d46c7e31c021ad7fce995f6a6c61095ce2d5659b (diff) | |
parent | 6ed1287ad1b6dd2a40a0d832d96486c11f5d980f (diff) | |
download | workshops-more-scipy-d3ecdfcc33d02be85b09b07bfb48637d3bd23778.tar.gz workshops-more-scipy-d3ecdfcc33d02be85b09b07bfb48637d3bd23778.tar.bz2 workshops-more-scipy-d3ecdfcc33d02be85b09b07bfb48637d3bd23778.zip |
Merged heads.
Diffstat (limited to 'day1')
-rw-r--r-- | day1/session2.tex | 50 |
1 files changed, 3 insertions, 47 deletions
diff --git a/day1/session2.tex b/day1/session2.tex index 9e0149c..06fa0b4 100644 --- a/day1/session2.tex +++ b/day1/session2.tex @@ -1,8 +1,8 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %Tutorial slides on Python. % -% Author: FOSSEE -% Copyright (c) 2009, FOSSEE, IIT Bombay +% Author: The FOSSEE Group +% Copyright (c) 2009, The FOSSEE Group, IIT Bombay %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[14pt,compress]{beamer} @@ -75,7 +75,7 @@ % Title page \title[Plotting using Python]{Plotting experimental data\\} -\author[FOSSEE] {FOSSEE} +\author[FOSSEE Team] {The FOSSEE Group} \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay} \date[] {31, October 2009\\Day 1, Session 2} @@ -123,39 +123,6 @@ % You might wish to add the option [pausesections] \end{frame} -\section{Functions} -\begin{frame}{Functions: Definition} -\begin{itemize} - \item \kwrd{def} keyword -\end{itemize} -\end{frame} - -\begin{frame}[fragile] -\frametitle{Functions: Example 1} - \begin{lstlisting} -In []: def plot_sinx(): - ....: x = linspace(0, 2*pi, 100) - ....: plt.plot(x, sin(x)) - ....: plt.show() - ....: - -In []: plot_sinx() - \end{lstlisting} -\end{frame} - -\begin{frame}[fragile] -\frametitle{Functions: Example 2} - \begin{lstlisting} -In []: def f(x): - ....: return sin(x*x*x)+(3*x*x) - -In []: x = linspace(0,2*pi, 1000) - -In []: plt.plot(x, f(x)) - \end{lstlisting} - \inctime{10} -\end{frame} - \section{Creating and running scripts} \begin{frame} {Creating python files} @@ -256,15 +223,4 @@ Out[]: [1, 2, 3, 4, 5, [6, 7]] \inctime{10} \end{frame} -\section{Modules and import} -\begin{frame}{Modules and \typ{import}} - \begin{itemize} - \item \kwrd{import} x - \item \kwrd{from} x \kwrd{import} y - \end{itemize} -\pause -Whats the difference?? -\inctime{5} -\end{frame} - \end{document} |