Interpolation::indat
ListInterpolation::indat
An error occurs because the first element in each pair is not a number:
Interpolation[{{x1, 1}, {x2, 2}, {x3, 3}, {x4, 4}}]This shows valid input in Interpolation:
Interpolation[{{1, y1}, {2, y2}, {3, y3}, {4, y4}}]InterpolatingPolynomial can be used for symbolic interpolation:
InterpolatingPolynomial[{{x1, 1}, {x2, 2}, {x3, 3}, {x4, 4}}, x]