Generalize SymPy map function for terms
Generalize SymPy map function for terms

Now a new amplitude can optionally be specified, in the same way as the
new list of sums.

tschijnmo/drudge,tschijnmo/drudge,tschijnmo/drudge