Fitting polynomial curve

Terry Reedy tjreedy at udel.edu
Thu Mar 17 02:09:41 EDT 2011


On 3/17/2011 1:42 AM, Astan Chee wrote:
> Hi,
> I have 2 points in 3D space and a bunch of points in-between them. I'm
> trying to fit a polynomial curve on it. Currently I'm looking through
> numpy but I don't think the function exists to fit a function like this:
> y = ax**4 + bx**3 + cx**2 + dx + e
> (I'm not sure what thats called but one degree up from a cubic curve)

quartic

> Also, I'm sure it'll take alot of time to brute force it like this but
> I'm sure I'm missing something for this.

Look at scipy.

-- 
Terry Jan Reedy




More information about the Python-list mailing list