I have a more complicated case however a basic example is;
ci = {X1, X2, X3, X4};
g = ci[[1]] + ci[[2]] + ci[[3]] + ci[[4]];
f[t_] := g /. ci[[1]] -> ci[[1]][t] /. ci[[2]] -> ci[[2]][t] /.
ci[[3]] -> ci[[3]][t] /. ci[[4]] -> ci[[4]][t]
And I was wondering if there was a way to do this for the list without typing out each element. Everything that I have tried hasn't worked :(
Pls send help.
f[t_] := Tr@Through[ci[t]]
?... $\endgroup$ – ciao Aug 12 '15 at 23:44f[t_] := Total@Through[ci[t]]
. $\endgroup$ – David G. Stork Aug 13 '15 at 1:16