[SciPy-User] cubic spline interpolation - derivative value in an end point
Paweł Kwaśniewski
pawel.kw@gmail....
Fri Nov 23 04:52:45 CST 2012
Hi,
I don't really understand why you want to specify the derivative at 0. If,
as you say, your function has a 0 derivative at 0, if you interpolate the
function on the complete range where it is defined: [-1:1] with
interpolate.splrep(), you can later evaluate it with splev() on whatever
range you wish, like [0:1], and it should have the proper derivative.
Cheers,
Paweł
2012/11/23 Maxim <spamaxx@gmail.com>
> I have a 1D function which is defined on [-1; 1] and it's symmetrical (with
> respect to 0). I want to construct a cubic spline interpolation of the
> function
> on [0; 1] (using, for example, interpolate.splrep and interpolate.splev
> functions) and as I know that the function is smooth, I must specify a
> derivative of the function in 0 to be 0).
>
> How can I manually define a derivative in one of the end points?
>
> Thanks,
> Maxim
>
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20121123/7796db27/attachment.html
More information about the SciPy-User
mailing list