I have two Functions, f[] and g[]. f is passed some values ,say {w,x,y,z} and I want to send one of those to g say x. I don't want this operation to interfere with other operations.
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
|
||||
| show 3 more comments |
|
Is this what you have in mind by any chance?
I'm simply using an external variable to store the
So now if you run
you get
But next time you run
|
|||
|
|

g[x_]:=x; f[{w_,x_,y_,z_}]:=g[x]not work? – acl Dec 19 '12 at 12:31f[l_]:=(g[First@l]; whatever)– ssch Dec 19 '12 at 12:33