Advertisement

Polynomial Coefficients

Started by August 31, 2002 03:05 PM
2 comments, last by QBomb 22 years, 5 months ago
I have n=3 arbitrary points in the X-Y plane. There is a way to find a polynomial of degree n - 1 that passes through these three points, right? f(x) = a0 + a1(x) + a2(x^2) w/ these points: (3,1) (5,3) (7,1) Am I setting up this augmented matrix right?


 a2  a1  a0    y
[ 9   3   0  | 1]
[ 25  5   0  | 3]
[ 49  7   0  | 1]

 
Should I have some other value in for a0?
Yes, you should set the matrix to

a2 a1 a0 y
[ 9 3 1 | 1]
[ 25 5 1 | 3]
[ 49 7 1 | 1]

So you want to solve the linear system:

[ 9 3 1 ] [ a2 ] [ 1 ]
[ 25 5 1 ] * [ a1 ] = [ 3 ]
[ 49 7 1 ] [ a0 ] [ 1 ]

- Mikko Kauppila
Advertisement
Thanks, Mikko. I''ll give that a shot.
Check out "Lagrange''s Interpolation Formula" for the general case.

"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley
"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

This topic is closed to new replies.

Advertisement