Uni and bivariate polynomial spline approximation