summaryrefslogtreecommitdiff
path: root/day2/session2.tex
diff options
context:
space:
mode:
authorPuneeth Chaganti2009-10-08 15:33:41 +0530
committerPuneeth Chaganti2009-10-08 15:33:41 +0530
commitdc4325ccfd1677244e18e51e7287dfdda958fa35 (patch)
tree38f8319ff094f88c24e4d69d691684fbf885b2e8 /day2/session2.tex
parentae27b7e96e0eab9b835c5c14d3472ce06cca8425 (diff)
downloadworkshops-more-scipy-dc4325ccfd1677244e18e51e7287dfdda958fa35.tar.gz
workshops-more-scipy-dc4325ccfd1677244e18e51e7287dfdda958fa35.tar.bz2
workshops-more-scipy-dc4325ccfd1677244e18e51e7287dfdda958fa35.zip
Minor edits to Day2 Session2.
Diffstat (limited to 'day2/session2.tex')
-rw-r--r--day2/session2.tex18
1 files changed, 8 insertions, 10 deletions
diff --git a/day2/session2.tex b/day2/session2.tex
index 07514f7..2f3d73a 100644
--- a/day2/session2.tex
+++ b/day2/session2.tex
@@ -347,14 +347,14 @@
\frametitle{Interpolation}
Try it!
\begin{lstlisting}
- >>> from scipy import interpolate
- >>> interpolate.interp1d?
- >>> x = np.arange(0,2*np.pi,np.pi/4)
- >>> y = np.sin(x)
- >>> fl = interpolate.interp1d(x,y,kind='linear')
- >>> fc = interpolate.interp1d(x,y,kind='cubic')
- >>> fl(np.pi/3)
- >>> fc(np.pi/3)
+>>> from scipy import interpolate
+>>> interpolate.interp1d?
+>>> x = np.arange(0,2*np.pi,np.pi/4)
+>>> y = np.sin(x)
+>>> fl = interpolate.interp1d(x,y,kind='linear')
+>>> fc = interpolate.interp1d(x,y,kind='cubic')
+>>> fl(np.pi/3)
+>>> fc(np.pi/3)
\end{lstlisting}
\end{frame}
@@ -424,5 +424,3 @@
- random number generation.
- Image manipulation: jigsaw puzzle.
- Monte-carlo integration.
-
-