I have the following problem. I current can automatically create the variable positionPayload, for instance:
positionPayload=2.x+3.t^2
I need, however, to automatically make positionPayload a function of x and t, i.e. do something like positionPayload[x_,t_]. To identify the variables present in positionPayload, I do:
variableList=DeleteDuplicates[Variables[positionPayload]]
However, how do I now write something to the effect of positionPayload[variableList] such that Mathematica now understands that positionPayload is a function of those variables?
Update
My question really is: how can I convert positionPayload into positionPayload[x_,t_] using the list variableList.

positionPayload := 2.x+3.t^2– Dr. belisarius Aug 04 '15 at 01:37f[a_,b_]knowing the list{a,b}.Apply[]is not working.... – space_voyager Aug 04 '15 at 01:59