# HG changeset patch # User Puneeth Chaganti # Date 1255008914 -19800 # Node ID 4f2b4c14fc0320117f18a9c73d9219cdaed7abd6 # Parent 523f788d2147b193825f3c9b3299d99781221d54 Minor edits to SciPy problem in Day2 Session2. diff -r 523f788d2147 -r 4f2b4c14fc03 day2/session2.tex --- a/day2/session2.tex Thu Oct 08 15:33:41 2009 +0530 +++ b/day2/session2.tex Thu Oct 08 19:05:14 2009 +0530 @@ -351,8 +351,10 @@ >>> 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 = interpolate.interp1d( + x,y,kind='linear') +>>> fc = interpolate.interp1d( + x,y,kind='cubic') >>> fl(np.pi/3) >>> fc(np.pi/3) \end{lstlisting} @@ -413,7 +415,8 @@ \begin{equation*} \frac{d^2x}{dt^2}+\mu(x^2-1)\frac{dx}{dt}+x= 0 \end{equation*} -\inctime{25} + Make a plot of $\frac{dx}{dt}$ vs. $x$. +\inctime{30} \end{frame}