equal
deleted
inserted
replaced
13 \begin{verbatim} |
13 \begin{verbatim} |
14 In [2]: x, y = loadtxt('points.txt', unpack = True) |
14 In [2]: x, y = loadtxt('points.txt', unpack = True) |
15 #load data file directly into Arrays. |
15 #load data file directly into Arrays. |
16 \end{verbatim} |
16 \end{verbatim} |
17 \section{} |
17 \section{} |
18 Interploate |
18 Interpolate |
19 \begin{verbatim} |
19 \begin{verbatim} |
20 In []: from scipy.interpolate import splrep |
20 In []: from scipy.interpolate import splrep |
21 In []: tck = splrep(x,y) #get spline curve representation for x,y. |
21 In []: tck = splrep(x,y) #get spline curve representation for x,y. |
22 In []: from scipy.interpolate import splev |
22 In []: from scipy.interpolate import splev |
23 #To evaluate spline and it's derivatives. |
23 #To evaluate spline and it's derivatives. |