Re: RE:Applying a list of 2D paramters to a mathematica function
- To: mathgroup at smc.vnet.net
- Subject: [mg68092] Re: [mg68076] RE:Applying a list of 2D paramters to a mathematica function
- From: "Nabeel Butt" <nabeel.butt at gmail.com>
- Date: Sat, 22 Jul 2006 06:24:15 -0400 (EDT)
- References: <200607212136.RAA25702@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Why don't you just define the function as: f[{x_,y_}]:=x+y to achieve your result. On 7/22/06, Mark_robert.holt at kcl.ac.uk <Mark_robert.holt at kcl.ac.uk> wrote: > > Dear Curry, > > Maybe you could try a rule-based approach like the following: > > In[1]:= > indices = {{a,b}, {c,d}, {e,f}} > > indices/.{x_,y_}->x+y > > > Out[1]= > {{a,b},{c,d},{e,f}} > > Out[2]= > {a+b,c+d,e+f} > > > Cheers, > > Mark > > Link to the forum page for this post: > > http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Special:Forum_ViewTopic&pid=12068#p12068 > Posted through http://www.mathematica-users.org [[postId=12068]] > > > -- Nabeel Butt LUMS,Lahore
- References:
- RE:Applying a list of 2D paramters to a mathematica function
- From: Mark_robert.holt@kcl.ac.uk
- RE:Applying a list of 2D paramters to a mathematica function