RE: best solution?

*To*: mathgroup at smc.vnet.net*Subject*: [mg22911] RE: [mg22899] best solution?*From*: "David Park" <djmp at earthlink.net>*Date*: Thu, 6 Apr 2000 02:04:30 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

Peter, Perhaps this is what you want: F[a_, b_, c_, x_] := a Sin[b x + c] parmlist = {{a1, b1, c1}, {a2, b2, c2}, {a3, b3, c3}}; (F[#1, #2, #3, x] & ) @@ parmlist[[2]] a2 Sin[c2 + b2 x] Or if you wish to define a new function of x for each set of parameters: f2[x_] = (F[#1, #2, #3, x] & ) @@ parmlist[[2]] a2 Sin[c2 + b2 x] f2[3] a2 Sin[3 b2 + c2] David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ > > 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 >