Re: Re: subscripted symbols
- To: mathgroup at smc.vnet.net
- Subject: [mg23473] Re: [mg23456] Re: subscripted symbols
- From: Carl Woll <carlw at u.washington.edu>
- Date: Fri, 12 May 2000 22:54:15 -0400 (EDT)
- References: <8fb1s9$hrp@smc.vnet.net> <200005110454.AAA23671@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Another way, which avoids the notation package, is to simply give Subscript the HoldFirst attribute. Whenever I work with subscripts, I always give Subscript the HoldFirst attribute for reasons like this. Anyway, I get In[1]:= SetAttributes[Subscript, {HoldFirst}] In[2]:= A = Subscript[A, 0] Out[2]= A 0 and no ugly recursion errors appear. "Kevin J. McCann" wrote: > Did you use the Utilities`Notation` Package? > > Try > > Utilities`Notation` > Symbolize[A_Subscript_1] > > Kevin > > "F. Mittermayr" <mitterma at linz.vai.co.at> wrote in message > news:8fb1s9$hrp at smc.vnet.net... > > Why isn't it allowed to say > > > > A={Subscript[A,1]} > > > > I get an error "$RecursionLimit::reclim: recursion depth of 256 exceeded." > > > > > > The following statements have been accepted: > > > > a={Subscript[A,1]} > > > > B={Subscript[A,1]} > > > > Subscript[A,0]={Subscript[A,1]} > > > > > > thnx for any ideas > > > > F. Mittermayr > > > > ----------------------------------- > > using Mathematica 4.0 > > > > > >
- References:
- Re: subscripted symbols
- From: "Kevin J. McCann" <kevinmccann@home.com>
- Re: subscripted symbols