Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4398
| From | Camille <camille.segarra@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Treat subscripted variables as symbols |
| Date | 2011-08-14 12:22 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j28emt$3fa$1@smc.vnet.net> (permalink) |
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
>>
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Treat subscripted variables as symbols Camille <camille.segarra@gmail.com> - 2011-08-14 12:22 +0000 Re: Treat subscripted variables as symbols Simon <simonjtyler@gmail.com> - 2011-08-15 00:23 +0000 Re: Treat subscripted variables as symbols "Alexey Popkov" <lehin.p@gmail.com> - 2011-08-17 09:53 +0000 Re: Treat subscripted variables as symbols Ralph Dratman <ralph.dratman@gmail.com> - 2011-08-18 07:29 +0000 Re: Treat subscripted variables as symbols "Alexey Popkov" <lehin.p@gmail.com> - 2011-08-19 10:33 +0000
csiph-web