float()? Interpolation should work even if y[i] or x[i] are symbols. All one needs to know is that no two x[i] are equal.