summaryrefslogtreecommitdiff
path: root/day1/session1.tex
diff options
context:
space:
mode:
Diffstat (limited to 'day1/session1.tex')
-rw-r--r--day1/session1.tex25
1 files changed, 24 insertions, 1 deletions
diff --git a/day1/session1.tex b/day1/session1.tex
index 92b577f..9805f2e 100644
--- a/day1/session1.tex
+++ b/day1/session1.tex
@@ -180,6 +180,7 @@
\item \typ{pendulum.txt}
\item \typ{points.txt}
\item \typ{pos.txt}
+ \item \typ{holmes.txt}
\end{itemize}
\item Python scripts:
\begin{itemize}
@@ -189,6 +190,7 @@
\item Images
\begin{itemize}
\item \typ{lena.png}
+ \item \typ{smoothing.gif}
\end{itemize}
\end{enumerate}
\end{frame}
@@ -526,9 +528,18 @@ Save commands of review problem into file
\begin{frame}[fragile]
\frametitle{\incqno }
+Draw (roughly) the plot obtained by the following:
+\begin{lstlisting}
+In []: x = linspace(0, 2*pi, 3)
+In []: plot(x, sin(x))
+\end{lstlisting}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{\incqno }
Describe the plot produced by the following:
\begin{lstlisting}
-In []: x = linspace(0, 2*pi)
+In []: x = linspace(0, 2*pi, 50)
In []: plot(x, cos(x), 'go')
\end{lstlisting}
\end{frame}
@@ -551,3 +562,15 @@ is in the rectangle $(0, -1.5)$ (left bottom coordinate) and $(2\pi,
What ipython magic command do you use to obtain the lines of code you have already typed in the interpreter? What command do you use to save them?
\end{frame}
+\begin{frame}
+\frametitle{\incqno }
+The following code snippet has an error/bug:
+\begin{lstlisting}
+In []: y = linspace(0, 2*pi, 50)
+In []: plot(y, sin(y))
+In []: clf()
+In []: plot(y, cos(y))
+In []: legend(['sin(y)', 'cos(y)'])
+\end{lstlisting}
+What is the error? How do you fix it?
+\end{frame}