MathGroup Archive 2011

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

Search the Archive

Treat subscripted variables as symbols

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120890] Treat subscripted variables as symbols
  • From: Camille <camille.segarra at gmail.com>
  • Date: Sun, 14 Aug 2011 08:15:33 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

Dear all,

I try in mathematica to define a function using subscripted variables and subscripted parameters. It seems however that mathematica is not able to treat these subscripted variables as symbols. Indeed, when I use non subscripted variables and parameters it "works".

For example:
In: Function[##,Subscript[A, 2] Subscript[x, 1] ] & @@ {Subscript[A, 2]}

Out:Function::flpar: Parameter specification Subscript[A, 2] in Subscript[A, 2]\[Function]Subscript[A, 2] Subscript[x, 1] should be a symbol or a list of symbols. 

But if I do:
In: Function[##,A x] & @@ {A}
Out: a\[Function]a x
(It is "working")

Any Idea?

Thanks in advance,

Camille


>>




  • Prev by Date: Re: Order of polynomial terms
  • Next by Date: Unprotect
  • Previous by thread: Manipulate Locators Breaking
  • Next by thread: Re: Treat subscripted variables as symbols