I have a function F, function of four other f functions, as shown below (1, 2, 3, 4 are indices here)
F = f[1]*f[2]*f[3]*f[4]
I want to create a table using this function such that for each (i, j)th element f[i], f[j] and other f elements are replaced by functions X, Y and Z respectively. Replacing f[i] and f[j] is easy as follows, but I am not able to figure out how to represent "indices other than i and j" in this function.
G = Table[F/.{f[i] -> X, f[j] -> Y}, {i, 1, 4}, {j, 1, 4}]
Will appreciate any help. thanks
f[Except[i|j]]
? $\endgroup$