[SciPy-User] cubic spline interpolation using scipy

Paweł Kwaśniewski pawel.kw@gmail....
Fri Nov 23 03:27:11 CST 2012


Hi,

Once you have your spline, you can use interpolate.splev() function to
evaluate it on a given set of x values. If you look into the documentation
of this function you will see that it can also give you the derivatives -
in your case, if you want the first derivative at each point of the
interpolation, you should do the following:

dy = interpolate.splev(x,tck,der=1)

That's it.

Cheers,

Paweł


2012/11/22 Stéphanie haaaaaaaa <flower_des_iles@hotmail.com>

> [4,6,25,12]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20121123/4a7b1a3c/attachment.html 


More information about the SciPy-User mailing list