day1/session6.tex
changeset 330 46533051b9d3
parent 319 cef948318842
child 337 56aa2efbf7d9
--- a/day1/session6.tex	Tue Dec 08 13:06:14 2009 +0530
+++ b/day1/session6.tex	Tue Dec 22 14:10:37 2009 +0530
@@ -78,7 +78,7 @@
 \author[FOSSEE] {FOSSEE}
 
 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {7 November, 2009\\Day 1, Session 6}
+\date[] {14 December, 2009\\Day 1, Session 6}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
@@ -150,7 +150,6 @@
                       [-1, 0.5, -1]])
     In []: b = array([[1], [-2], [0]])
     In []: x = solve(A, b)
-    In []: Ax = dot(A,x)
   \end{lstlisting}
 \end{frame}
 
@@ -168,6 +167,7 @@
 \begin{frame}[fragile]
 \frametitle{Let's check!}
 \begin{lstlisting}
+In []: Ax = dot(A,x)
 In []: Ax
 Out[]: 
 array([[  1.00000000e+00],
@@ -318,6 +318,7 @@
 \item Define a function as below
 \end{itemize}
 \begin{lstlisting}
+In []: from scipy.integrate import odeint
 In []: def epid(y, t):
   ....     k, L = 0.00003, 25000
   ....     return k*y*(L-y)
@@ -338,6 +339,14 @@
 \end{frame}
 
 \begin{frame}[fragile]
+\frametitle{Result}
+\begin{center}
+\includegraphics[height=2in, interpolate=true]{data/image}  
+\end{center}
+\end{frame}
+
+
+\begin{frame}[fragile]
 \frametitle{ODEs - Simple Pendulum}
 We shall use the simple ODE of a simple pendulum. 
 \begin{equation*}
@@ -392,6 +401,12 @@
 \end{lstlisting}
 \end{frame}
 
+\begin{frame}[fragile]
+\frametitle{Result}
+\begin{center}
+\includegraphics[height=2in, interpolate=true]{data/ode}  
+\end{center}
+\end{frame}
 
 \begin{frame}
   \frametitle{Things we have learned}