Added the methods that actually go about calculating the new potential
(plus a couple of methods in Function and Domain to help make that
happen)
hi