summaryrefslogtreecommitdiff
path: root/day2/session5.tex
diff options
context:
space:
mode:
authorMadhusudan.C.S2009-10-28 16:01:29 +0530
committerMadhusudan.C.S2009-10-28 16:01:29 +0530
commit39af79b51830b3043a5d09c49e5f028dcd26ea55 (patch)
tree1e489ed2799e117079ac9720ecf688fd5331e101 /day2/session5.tex
parent14ff85f4842ff001a233e89dbd7d0ab26ba1c79c (diff)
parentc304c98dd578c31a5be657c0b9e5c96f180284cc (diff)
downloadworkshops-more-scipy-39af79b51830b3043a5d09c49e5f028dcd26ea55.tar.gz
workshops-more-scipy-39af79b51830b3043a5d09c49e5f028dcd26ea55.tar.bz2
workshops-more-scipy-39af79b51830b3043a5d09c49e5f028dcd26ea55.zip
Merged Madhu and Mainline branches.
Diffstat (limited to 'day2/session5.tex')
-rw-r--r--day2/session5.tex10
1 files changed, 5 insertions, 5 deletions
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}