This function provides a scaled general sum of any permutation of two fields and functions.
Parameters:
is a variable
is a field or a function