[SciPy-user] Problems with the interpolation package
Jón Egilsson
jongisli@gmail....
Wed Jul 8 05:09:31 CDT 2009
Hi there.
I've now tried various functions in the scipy.interpolate package without
getting far.
*What I want to do:*
I want to interpolate using spline interpolation, cubic spline interpolation
to be more precise.
1. I want to be able to choose which points to interpolate (to choose
between which points on the x-axis the cubic polynomials are). Then I'll
have some polynomials on the form ax^3 + bx^2 + cx + d
2. Then I want to be able to extract the coefficients a,b,c,d from each
polynomial because that's the only thing I want to keep. I don't want to
keep an interpolation object of some sort.
*Input:*
Two lists, one representing the x-axis: [0..n] and another one with the
function values: [y0, y1, y2, ... , yn] and the desired points I wish to
interpolate between.
*Output (preferably):*
The coefficients (a,b,c,d) for every polynomial beetween the points I chose
to interpolate between.
Any help at all will be greatly appreciated. Cheers.
Jón Gísli Egilsson.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20090708/a614bd3b/attachment.html
More information about the SciPy-user
mailing list