I have the equation $f(x)=148x^4 + 3x^3 + 251x^2 + 56x + 157$.
This equation gives us the points below.
$(0,157),(1,101), (2,67), (3,4), (4,72)$
I want to interpolate this points in a $4$ degree polynomial, to get the equation $f(x)$ above.
However, when I try to make the interpolation using matrices, with Octave, i get a different equation $((157 -136, 75 x + 133,2083 x^2 - 61, 25 x^3 +8, 7917x^4))$. Does anyone knows what is happening, and how I can fix this?
Thanks in advance.