I wish to square every term of each element of a list. Let me show the pattern (e.g.):
Map[(#^2) &, {rf[a], rf[b], rf[a] + rf[b], rf[a] + rf[b] + rf[c]}, {2}]
I obtain as output:
Out:= {rf(a^2), rf(b^2), rf(a)^2+rf(b)^2, rf(a)^2+rf(b)^2+rf(c)^2}
But I want to obtain:
Out:= {rf(a)^2, rf(b)^2, rf(a)^2+rf(b)^2, rf(a)^2+rf(b)^2+rf(c)^2}
I realize that it happens when the element of list has only one term, then level 2 is applied inside this term, but how can I avoid it?)