day2/session5.tex
changeset 219 f6725f6bee41
parent 206 9ce77dab0a21
child 239 8953675dc056
--- a/day2/session5.tex	Wed Oct 28 13:06:58 2009 +0530
+++ b/day2/session5.tex	Wed Oct 28 14:25:03 2009 +0530
@@ -147,14 +147,14 @@
 
 \begin{frame}[fragile]
   \frametitle{Problem set 4}
-  Finite difference
+  Central difference
   \begin{equation*}
-  \frac{sin(x+h)-sin(x)}{h}
+  \frac{sin(x+h)-sin(x-h)}{2h}
   \end{equation*}
   \begin{lstlisting}
-  >>> x = linspace(0,2*pi,100)
-  >>> y = sin(x)
-  >>> deltax = x[1] - x[0]
+  In []: x = linspace(0, 2*pi, 100)
+  In []: y = sin(x)
+  In []: deltax = x[1] - x[0]
   \end{lstlisting}
   \pause
     \begin{enumerate}