summaryrefslogtreecommitdiff
path: root/day2/session5.tex
diff options
context:
space:
mode:
authorPuneeth Chaganti2009-10-28 15:46:21 +0530
committerPuneeth Chaganti2009-10-28 15:46:21 +0530
commitc304c98dd578c31a5be657c0b9e5c96f180284cc (patch)
tree511236646168531d5a2b20b04682d219a75f9c15 /day2/session5.tex
parent7ae59e8a52dd90725414e84fa8bc2461cf1b99ed (diff)
parent434855cb76d879f216f475965e45ae868008dbee (diff)
downloadworkshops-more-scipy-c304c98dd578c31a5be657c0b9e5c96f180284cc.tar.gz
workshops-more-scipy-c304c98dd578c31a5be657c0b9e5c96f180284cc.tar.bz2
workshops-more-scipy-c304c98dd578c31a5be657c0b9e5c96f180284cc.zip
Merged with mainline.
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}