MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: best solution?

What about Sequence?

F[a_, b_, c_, x_] := a Sin[b x + c]
k = Table[{Subscript[a, i], Subscript[b, i], Subscript[c, i]}, {i, 1, 4}]
x = Table[{Subscript[d,i]},{i,1,4}]

F[ Sequence @@ k[[#]], x[[#]] ] & /@ Range[Length[k]]

Hope that helps

F. Mittermayr

Peter Weijnitz <peter.weijnitz at> wrote in message
news:8ce9t3$14a at
> 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
> way, how?
> (Picking out the elements like k[[3,2]]=b3 e.t.c is not what I want.)
> /Peter

  • Prev by Date: RE: best solution?
  • Next by Date: Re: system of simultaneous equations
  • Previous by thread: RE: best solution?
  • Next by thread: Re: best solution?