Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: lists of variables

  • To: mathgroup at
  • Subject: [mg58163] Re: [mg58156] lists of variables
  • From: "Caffa Vittorio Dr." <Caffa at>
  • Date: Tue, 21 Jun 2005 06:02:36 -0400 (EDT)
  • Sender: owner-wri-mathgroup at


variable[a_String, i_Integer /; i ? 0] := ToExpression[a <> ToString[i]]

variable["t", 3] // InputForm

variable["t", #] & /@ Range[13] // InputForm
{t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13}

Cheers, Vittorio

>-----Original Message-----
>From: Heath Gerhardt [mailto:heathgerhardt at]
To: mathgroup at
>Sent: Monday, June 20, 2005 11:22 AM
>Subject: [mg58163] [mg58156] lists of variables
>I need to make lists of variables, for example
>but have not been able to figure out how to make Mathematica do this.
>Tried using
>which gives
>but then I don't know how to set the t[i]'s in expressions similar to
>thanks in advance

  • Prev by Date: Mathematica versions 4.0 and 5.1 incompatibility ?
  • Next by Date: Re: Re: Interrupt[] without confirmation
  • Previous by thread: Re: lists of variables
  • Next by thread: Re: lists of variables