Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4443
| From | "Alexey Popkov" <lehin.p@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Treat subscripted variables as symbols |
| Date | 2011-08-17 09:53 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j2g327$1ch$1@smc.vnet.net> (permalink) |
| References | <j28emt$3fa$1@smc.vnet.net> |
You may try to use the SubscriptSymbols command from Andrew Moylan's
package:
http://sites.google.com/site/andrewjmoylan/mathematica
http://sites.google.com/site/andrewjmoylan/Moylan.zip
Description from the web-page: "This package makes Mathematica treat all the
subscripts in your notebook as symbols. I used it for a long time because
it's standard in physics to treat symbols like r, r0, and rcore as unique
variables.
If you set SubscriptSymbols = True, every expression with head SubscriptBox
will be transparently converted into a symbol; and that symbol will display
as the corresponding SubscriptBoxes on output. You won't normally need to
know about the underlying proxy symbol, but you can use Information[] to
find out its name."
"Camille" <camille.segarra@gmail.com> wrote:
news:j28emt$3fa$1@smc.vnet.net...
> 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 — Previous in thread | 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