Barycentric interpolation function fixed.