MathGroup Archive 2000

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

Search the Archive

Re: Re: subscripted symbols


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
> >
> >
> >



  • Prev by Date: degree symbol "bug"
  • Next by Date: Re: Re: ReExitDialog in ButtonfFunction
  • Previous by thread: Re: subscripted symbols
  • Next by thread: Re: subscripted symbols