I have a function F, of four other f functions, as shown below (1, 2, 3, 4 are indices here, while m is an integer)
F = f[m, 1]*f[m, 2]*f[m, 3]*f[m, 4]
I want to create a table using this function such that for each (i, j)th element f[m, i], f[m, j] and other f[m, k] (where k is a number other than i & j in (i,j)th element) elements are replaced by f[m-2, i], f[m-2,j] and f[m-1, k] respectively.
Replacing f[m, i] and f[m, j] is easy as follows, but I am not able to figure out how to represent the third replacement for indices other than i and j in F.
G = Table[F/.{f[m, i] -> f[m-2, i], f[m, j] -> f[m-2, j]}, {i, 1, 4}, {j, 1, 4}]
In my previous post, I got the suggestion to use "_" or "Except[i|j]" for k. These suggestion like
f[m, _] -> f[m-1, _]
successfully converts m to m-1 but then k is also replaced by symbols "_" or "Except[i|j]" in stead of giving a value.
For example f[m, 4] in {1, 2}th element of table gives f[m-1, _], not f[m-1, 4] as expected. I will appreciate any further help on this. thanks
m
? $\endgroup$