Wolfram Demonstrations: Source code

Riemann Sums for Functions of Two Variables