summaryrefslogtreecommitdiff
path: root/day2
diff options
context:
space:
mode:
authorPuneeth Chaganti2009-10-08 19:05:14 +0530
committerPuneeth Chaganti2009-10-08 19:05:14 +0530
commitc8d383d9b7122c68703129233d11d3ac2c9849fd (patch)
treebf2bea337723e70848f813c3e55b642a3fe6e86b /day2
parent92642a14b28d63512ca9099fc41fa3eb71900cb6 (diff)
downloadworkshops-c8d383d9b7122c68703129233d11d3ac2c9849fd.tar.gz
workshops-c8d383d9b7122c68703129233d11d3ac2c9849fd.tar.bz2
workshops-c8d383d9b7122c68703129233d11d3ac2c9849fd.zip
Minor edits to SciPy problem in Day2 Session2.
Diffstat (limited to 'day2')
-rw-r--r--day2/session2.tex9
1 files changed, 6 insertions, 3 deletions
diff --git a/day2/session2.tex b/day2/session2.tex
index 2f3d73a..b1104f7 100644
--- a/day2/session2.tex
+++ b/day2/session2.tex
@@ -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}