Consider approximating the manifold by a
discrete set of points.
Consider the sum of f  at the points 1,2,3,4: