diff options
author | Puneeth Chaganti | 2009-10-09 12:55:34 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2009-10-09 12:55:34 +0530 |
commit | 0a9ef884da48dbc63e5100287de2b9bc93bce247 (patch) | |
tree | 73de74c95b833cfc510f941318d151b450edfc38 /day2 | |
parent | a0b30d1820496c7cf887c76d82190928055d5aef (diff) | |
download | workshops-0a9ef884da48dbc63e5100287de2b9bc93bce247.tar.gz workshops-0a9ef884da48dbc63e5100287de2b9bc93bce247.tar.bz2 workshops-0a9ef884da48dbc63e5100287de2b9bc93bce247.zip |
Minor edits to Session2 Day2.
Diffstat (limited to 'day2')
-rw-r--r-- | day2/session2.tex | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/day2/session2.tex b/day2/session2.tex index f93b02f..0f471f5 100644 --- a/day2/session2.tex +++ b/day2/session2.tex @@ -338,12 +338,12 @@ Numerically solve ODEs\\ \begin{align*} \frac{dx}{dt}&=-e^{-t}x^2\\ - x(0)&=2 + x&=2 \quad at \ t=0 \end{align*} \begin{lstlisting} >>> def dx_dt(x,t): return -np.exp(-t)*x**2 - +>>> t=np.linspace(0,2,100) >>> x=integrate.odeint(dx_dt, 2, t) >>> plt.plot(x,t) \end{lstlisting} @@ -372,8 +372,6 @@ \frametitle{Interpolation - Splines} Plot the Cubic Spline of $sin(x)$ \begin{lstlisting} ->>> x = np.arange(0,2*np.pi,np.pi/4) ->>> y = np.sin(x) >>> tck = interpolate.splrep(x,y) >>> X = np.arange(0,2*np.pi,np.pi/50) >>> Y = interpolate.splev(X,tck,der=0) |