quadratic interpolation?

Open discussion regarding features, bugs, issues, vendors, etc.

quadratic interpolation?

Postby Joe28 » Tue May 09, 2006 2:38 pm

Hi everyone,

I'm wondering if anyone knows if there is a Lapack routine for quadratic interpolation. I need something simple, that takes three points of a parabola, and finds the roots.

Should be simple enough, but I can't seem to find it as a Lapack routine.
Thanks
Joe
Joe28
 
Posts: 1
Joined: Tue May 09, 2006 2:27 pm

Postby DavidB » Fri May 12, 2006 1:09 pm

I am not clear about exactly what you are trying to do.

It sounds like you have three (x,y) coordinates. From those three points, you would like to determine the quadratic equation that produced those points:

y = a*x^2 + b*x + c

Once you have the equation, you would then like to find the roots of this equation.

Have I understood your question correctly?

If so, the problem is not really one of interpolation; it is more one of root-finding. In fact, roots of a quadratic equation are easy to find; equations for doing so are usually covered in high-school.

In your situation, the most difficult part is going to be determining the equation. For that, you would simply solve three equations in three unknowns for the coefficients: a, b, and c. Once you've got those, the rest is simple.

Regards,


David
DavidB
 
Posts: 34
Joined: Thu Dec 15, 2005 1:49 pm
Location: Vancouver, B.C. Canada


Return to User Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest