MathGroup Archive 2005

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

Search the Archive

Re: lists of variables

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58171] Re: [mg58156] lists of variables
  • From: "David Park" <djmp at earthlink.net>
  • Date: Tue, 21 Jun 2005 06:02:44 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Heath,

arglist = Table[Symbol["t" <> ToString[i]], {i, 1, 3}]
Evaluate[F @@ arglist] = Cos@(Plus @@ (arglist{1, 1, -1}))
{t1, t2, t3}
Cos[t1 + t2 - t3]

F[t1, t2, t3]
Cos[t1 + t2 - t3]


David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 



From: Heath Gerhardt [mailto:heathgerhardt at hotmail.com]
To: mathgroup at smc.vnet.net


I need to make lists of variables, for example

{t1,t2,t3}

but have not been able to figure out how to make Mathematica do this. 
Tried using

Array[t,3]

which gives

{t[1],t[2],t[3]}

but then I don't know how to set the t[i]'s in expressions similar to

F[t[1]_,t[2]_,t[3]_]:=Cos[t[1]+t[2]-t[3]]

thanks in advance
Heath



  • Prev by Date: Re: lists of variables
  • Next by Date: Re: Transformation rule problem
  • Previous by thread: Re: lists of variables
  • Next by thread: Re: lists of variables