[SciPy-User] cubic spline interpolation - derivative value in an end point
Fri Nov 23 04:52:45 CST 2012
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.
2012/11/23 Maxim <firstname.lastname@example.org>
> 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
> 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?
> SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User