Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Very nice answer, that I am still digesting. However I think there's a minor mistake concerning a minus sign, in that MINUS the divergence is the adjoint of the gradient, and that this leads to the nice formula for the discrete divergence that you give... right?