Re: best solution?

*To*: mathgroup at smc.vnet.net*Subject*: [mg22957] Re: [mg22899] best solution?*From*: Matt.Johnson at autolivasp.com*Date*: Fri, 7 Apr 2000 02:54:38 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

Peter- I don't know if this is what you are looking for, but: In[12]:=fn[{a_, b_, c_}, x_] := a Sin[b x + c]; In[13]:=params = {{a1, b1, c1}, {a2, b2, c2}, {a3, b3, c3}}; In[14]:=fnList[x_] := Map[fn[#, x] &, params] In[15]:=fnList[3] Out[15]={a1 Sin[3 b1 + c1], a2 Sin[3 b2 + c2], a3 Sin[3 b3 + c3]} -matt "Peter Weijnitz" <peter.weijnitz at perimed.se> on 04/04/2000 08:41:03 PM Subject: [mg22957] [mg22899] best solution? I have a function e.g F[a,b,c,x] =a Sin[b x +c] and a number of parameter triplets k={{a1,b1,c1},{a2,b2,c2},{a3,b3,c3},....}. I would like to feed my function the parameter values in an good and simple way, how? (Picking out the elements like k[[3,2]]=b3 e.t.c is not what I want.) /Peter