equal
deleted
inserted
replaced
178 \begin{itemize} |
178 \begin{itemize} |
179 \item \typ{sslc1.txt} |
179 \item \typ{sslc1.txt} |
180 \item \typ{pendulum.txt} |
180 \item \typ{pendulum.txt} |
181 \item \typ{points.txt} |
181 \item \typ{points.txt} |
182 \item \typ{pos.txt} |
182 \item \typ{pos.txt} |
|
183 \item \typ{holmes.txt} |
183 \end{itemize} |
184 \end{itemize} |
184 \item Python scripts: |
185 \item Python scripts: |
185 \begin{itemize} |
186 \begin{itemize} |
186 \item \typ{sslc_allreg.py} |
187 \item \typ{sslc_allreg.py} |
187 \item \typ{sslc_science.py} |
188 \item \typ{sslc_science.py} |
188 \end{itemize} |
189 \end{itemize} |
189 \item Images |
190 \item Images |
190 \begin{itemize} |
191 \begin{itemize} |
191 \item \typ{lena.png} |
192 \item \typ{lena.png} |
|
193 \item \typ{smoothing.gif} |
192 \end{itemize} |
194 \end{itemize} |
193 \end{enumerate} |
195 \end{enumerate} |
194 \end{frame} |
196 \end{frame} |
195 |
197 |
196 \begin{frame}[fragile] |
198 \begin{frame}[fragile] |
524 %% Questions for Quiz %% |
526 %% Questions for Quiz %% |
525 %% ------------------ %% |
527 %% ------------------ %% |
526 |
528 |
527 \begin{frame}[fragile] |
529 \begin{frame}[fragile] |
528 \frametitle{\incqno } |
530 \frametitle{\incqno } |
|
531 Draw (roughly) the plot obtained by the following: |
|
532 \begin{lstlisting} |
|
533 In []: x = linspace(0, 2*pi, 3) |
|
534 In []: plot(x, sin(x)) |
|
535 \end{lstlisting} |
|
536 \end{frame} |
|
537 |
|
538 \begin{frame}[fragile] |
|
539 \frametitle{\incqno } |
529 Describe the plot produced by the following: |
540 Describe the plot produced by the following: |
530 \begin{lstlisting} |
541 \begin{lstlisting} |
531 In []: x = linspace(0, 2*pi) |
542 In []: x = linspace(0, 2*pi, 50) |
532 In []: plot(x, cos(x), 'go') |
543 In []: plot(x, cos(x), 'go') |
533 \end{lstlisting} |
544 \end{lstlisting} |
534 \end{frame} |
545 \end{frame} |
535 |
546 |
536 \begin{frame} |
547 \begin{frame} |
549 \begin{frame} |
560 \begin{frame} |
550 \frametitle{\incqno } |
561 \frametitle{\incqno } |
551 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? |
562 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? |
552 \end{frame} |
563 \end{frame} |
553 |
564 |
|
565 \begin{frame} |
|
566 \frametitle{\incqno } |
|
567 The following code snippet has an error/bug: |
|
568 \begin{lstlisting} |
|
569 In []: y = linspace(0, 2*pi, 50) |
|
570 In []: plot(y, sin(y)) |
|
571 In []: clf() |
|
572 In []: plot(y, cos(y)) |
|
573 In []: legend(['sin(y)', 'cos(y)']) |
|
574 \end{lstlisting} |
|
575 What is the error? How do you fix it? |
|
576 \end{frame} |