From 066b7e762618793f998dee4d271f7cfa6969e616 Mon Sep 17 00:00:00 2001
From: Shantanu
Date: Wed, 28 Oct 2009 14:25:03 +0530
Subject: Session 4, Debugging and Testing.

---
 day2/session5.tex | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'day2/session5.tex')

diff --git a/day2/session5.tex b/day2/session5.tex
index f3b517e..5a5949d 100644
--- a/day2/session5.tex
+++ b/day2/session5.tex
@@ -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}
-- 
cgit 

