def barycentric_interpolate(xi, yi, x, axis=0):
 return BarycentricInterpolator(xi, yi, axis=axis)(x)

def barycentric_interpolate ( xi , yi , x , axis = 0 ) : return BarycentricInterpolator ( xi , yi , axis = axis ) ( x )
convenience function for polynomial interpolation .