diff options
author | Puneeth Chaganti | 2009-10-08 19:05:14 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2009-10-08 19:05:14 +0530 |
commit | 85f03d79da17d948e4480866eb05c1156b1c8ad3 (patch) | |
tree | bf2bea337723e70848f813c3e55b642a3fe6e86b | |
parent | dc4325ccfd1677244e18e51e7287dfdda958fa35 (diff) | |
download | workshops-more-scipy-85f03d79da17d948e4480866eb05c1156b1c8ad3.tar.gz workshops-more-scipy-85f03d79da17d948e4480866eb05c1156b1c8ad3.tar.bz2 workshops-more-scipy-85f03d79da17d948e4480866eb05c1156b1c8ad3.zip |
Minor edits to SciPy problem in Day2 Session2.
-rw-r--r-- | day2/session2.tex | 9 |
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} |