Consider the following code
G[x, y] /. a_[b__] -> Total[a @@@ Permutations[List[b]]]
I expect it to give
But it gives,
Can anyone explain why this happens? Thank you.
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.Sign up to join this community