The title basically. A typical example is the co-ordinates of a particle, and I want to introduce time dependence to define it's trajectory. For example, if I have
cartco = {x,y,z}
,
I want to automate the defining of
cartcofn[t] = {x[t],y[t],z[t]}
.
I can use Table
command to make a loop over the list as I am doing for the moment, but is there an inbuilt function, like can Thread
be somehow used?
1 Answer
cartco = {x, y, z};
Through[cartco[t]]
{x[t], y[t], z[t]}
c = {x, y, z}; cf[t_] = (#[t] &) /@ c
Does that get you what you're looking for? $\endgroup$