diff options
author | Madhusudan.C.S | 2009-10-09 13:20:08 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2009-10-09 13:20:08 +0530 |
commit | ef696e638d208b839b2124fbab57009d1e636c5e (patch) | |
tree | b387d694842adb4fa7523cdf94350965b6728301 /day1 | |
parent | b6de26b18b28a244643c671bd71ed92a88555ad4 (diff) | |
download | workshops-more-scipy-ef696e638d208b839b2124fbab57009d1e636c5e.tar.gz workshops-more-scipy-ef696e638d208b839b2124fbab57009d1e636c5e.tar.bz2 workshops-more-scipy-ef696e638d208b839b2124fbab57009d1e636c5e.zip |
Added emphbar to boxes in Session 2.
Diffstat (limited to 'day1')
-rwxr-xr-x | day1/Session-2.tex | 16 | ||||
-rwxr-xr-x | day1/Session-4.tex | 15 |
2 files changed, 9 insertions, 22 deletions
diff --git a/day1/Session-2.tex b/day1/Session-2.tex index 430f5b7..dd26535 100755 --- a/day1/Session-2.tex +++ b/day1/Session-2.tex @@ -87,11 +87,11 @@ %% Delete this, if you do not want the table of contents to pop up at %% the beginning of each subsection: -\AtBeginSubsection[] +\AtBeginSection[] { \begin{frame}<beamer> \frametitle{Outline} - \tableofcontents[currentsection,currentsubsection] + \tableofcontents[currentsection,subsections] \end{frame} } @@ -123,10 +123,8 @@ \begin{frame}{Problem 1.1} Write a program that displays all three digit numbers that are equal to the sum of the cubes of their digits. That is, print numbers $abc$ that have the property $abc = a^3 + b^3 + c^3$\\ -\begin{block} -{Information...} -These are called $Armstrong$ numbers. -\end{block} +\vspace*{0.2in} +\emphbar{These are called $Armstrong$ numbers.} \end{frame} \begin{frame}{Problem 1.2 - Collatz sequence} @@ -150,7 +148,7 @@ These are called $Armstrong$ numbers. \end{lstlisting} The number of lines must be obtained from the user as input.\\ \pause -When can your code fail? +\emphbar{When can your code fail?} \only<2->{\inctime{20}} \end{frame} @@ -189,7 +187,7 @@ def pad( n, size ): return padSize * SPACE + s \end{lstlisting} \pause -What about \%3d? +\emphbar{What about \% formatting?} \end{frame} \begin{frame}[fragile] @@ -326,7 +324,7 @@ Explain last result >>> a[-1::-1] \end{lstlisting} What do you think the last one will do? - \emphbar{Note: Strings also use same indexing and slicing.} + \emphbar{Strings also use same indexing and slicing.} \end{frame} \begin{frame}[fragile] diff --git a/day1/Session-4.tex b/day1/Session-4.tex index c80d566..a4a25b0 100755 --- a/day1/Session-4.tex +++ b/day1/Session-4.tex @@ -89,11 +89,11 @@ %% Delete this, if you do not want the table of contents to pop up at %% the beginning of each subsection: -\AtBeginSubsection[] +\AtBeginSection[] { \begin{frame}<beamer> \frametitle{Outline} - \tableofcontents[currentsection,currentsubsection] + \tableofcontents[currentsection,subsections] \end{frame} } @@ -297,17 +297,6 @@ squares = [i*i for i in range(1, 100) if i % 10 in [1, 2, 5, 7]] \end{lstlisting} Which is more readable? -\end{frame} - -\begin{frame}[fragile] - \frametitle{map() function} - map() function accomplishes the same as list comprehensions - \begin{lstlisting} ->>> def square(x): return x*x -... ->>> map(square, range(1, 100)) -[1, 8, 27, 64, 125, 216, 343, 512, 729, 1000] - \end{lstlisting} \inctime{15} \end{frame} |