According to the Mathematica guide,
In[26]:= f /@ g[x, y, z]
Out[26]= g[f[x], f[y], f[z]]
In a simple example, this works as desired with symbolic values:
In[139]:= f[a_] := a^2; g[x_, y_, z_] := x + y + z ;
f /@ g[x, y, z]
Out[140]= x^2 + y^2 + z^2
However this does not work with integer entries:
In[141]:= f /@ g[1, 2, 3]
Out[141]= 6
Why does f /@ g[1, 2, 3] return 6 instead of 14?
f /@ gsimilar toPullbackin mathematics :-)Plus[2+3]andPlus[x+y]are difference sincePlus[x+y]need to defer calculate, I think. – cvgmt Oct 23 '20 at 12:06g[1,2,3]it is not a function, it is numerical expression. Try, for instancef /@ g[x, y, 3]– Alex Trounev Oct 23 '20 at 12:35g[f[1], f[2]],f[3]] = 1^2 + 2^2 + 3^3 = 14? – Minkowski Oct 23 '20 at 13:32f /@ Unevaluated[g[1, 2, 3]]– Rohit Namjoshi Oct 23 '20 at 13:49