I'm interested to see examples of discrete versions of the major theorems of Calculus.

Many of the operations of calculus which can be carried out on a function of a real variable have their analogues for sequences of numbers; forward difference, summation by parts, etc.

If we think of the integer number line as an oriented, 1-singular complex, we see immediately that many of these operations have have their counterpart on any oriented 1-singular complex. Just take an oriented graph, for example; a real-valued function on its vertices can be thought of as a discrete potential function. Starting with such a potential function, we can assign to each edge of the graph the forward difference of the values corresponding to its vertices, we obtain a sort of "gradient" on the graph. "Integrating" from a point to another (i.e summing up the values of the gradient along a path) yields the potential of the last vertex minus the potential of the first one. The value of the integral is also independent of path. So we can recover, up to an additive constant, the potential function.

Now the most interesting theorems of Calculus are not on the line, but in

-space. How could these theorems be generalized to arbitrary

-simplices? What would Gauss' theorem, or Stokes' theorem, look like? What kind of applications, if any, would discrete formulations of these theorems yield?