MathGroup Archive 2000

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

Search the Archive

Re: best solution?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22916] Re: best solution?
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 6 Apr 2000 02:04:33 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <8ce9t3$14a@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hmm,

complicated.

F[a_, b_, c_, x_] := a Sin[b x + c]
k = {{a1, b1, c1}, {a2, b2, c2}, {a3, b3, c3}};

and

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

will output 

{a1 Sin[c1 + b1 x], a2 Sin[c2 + b2 x], a3 Sin[c3 + b3 x]}


There are hundreds of other solutions.

Hope that helps
  Jens

Peter Weijnitz wrote:
> 
> 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


  • Prev by Date: Pi == 3 for imprecise values of 3?
  • Next by Date: Command to get a notebook's directory?
  • Previous by thread: Re: best solution?
  • Next by thread: RE: best solution?