Notice that jedishrfu has a fourth degree polynomial, not a cubic. That is because a cubic, [itex]y= ax^3+ bx^2+ cx+ d[/itex] has four coefficients which take four equations to determine. So there exist a unique cubic through any four given points. You give five points so there may not be such as cubic. Of course, if those points do lie on a cubic, you will find that the coefficient of [itex]x^4[/itex] is 0.
Another way to find the polynomial (though I really prefer jedishrfu's method) is the "Lagrange polynomial":
[tex]y(x)= 4\frac{(x+2)(x+1)(x)(x- 7)}{(-10+ 2)(-10+ 1)(-10)(-10- 7)}+ 3\frac{(x- 4)(x+ 1)(x)(x- 7)}{(-2+ 10)(-2+ 1)(-2)(-2- 7)}[/tex]
[tex]+ 2\frac{(x+ 10)(x+ 2)(x)(x- 7)}{(-1+ 10)(-1+2)(-1)(-1-7)}+ 1\frac{(x+10)(x+2)(x+1)(x- 7)}{(0+10)(0+2)(0+1)(0-7)}+ 0\frac{(x+10)(x+2)(x+1)(x)}{(7+10)(7+2)(7+1)(7- 0)}[/tex]
Do you see the idea? Each fraction has factors in the numerator of "x- " each x value except one. And the denominator has factors with that missing x value minus each of the other x values. If x is anyone of the given x values, every fraction except one will be 0 and then the fraction will be 1 so that we just have y value that was in front. And, of course, because there were five points, each fraction has 4 factors involving x and so this will, in general, be a fourth degree polynomial.