interpolation



how to get y=x^2-3*x-10
giving:
p:[[1,-12],[2,-12],[3,-10]];
?
only with lagrange(p)? or there are also other functions giving the same result?