method
Return the code expression which computes the moments from the distributed functions on the whole domain.