MathGroup Archive 1999

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

Search the Archive

Re: Subscripts, Doh!!!

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19062] Re: Subscripts, Doh!!!
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Thu, 5 Aug 1999 01:34:51 -0400
  • References: <7o5ier$rme@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Mike,
We can Symbolize the pattern   SubscriptBox["_", "_"]
Then all subscript expression are treated as a symbol.

This  is illustrated in the following (paste the Notebook Expression into a
notebook)

Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565



Notebook[{
Cell[BoxData[
    \(<< Utilities`Notation`\)], "Input"],

Cell[BoxData[
    RowBox[{
      RowBox[{"Symbolize", "[",
        TagBox[\(_\__\),
          NotationBoxTag,
          TagStyle->"NotationTemplateStyle"], "]"}], ";"}]], "Input"],

Cell[CellGroupData[{

Cell[BoxData[
    \(a\_b = 5\)], "Input"],

Cell[BoxData[
    \(5\)], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
    \(a\_b\)], "Input"],

Cell[BoxData[
    \(5\)], "Output"]
}, Open  ]]
}
]


Mike Tiller <mtiller at ford.com> wrote in message
news:7o5ier$rme at smc.vnet.net...
>
> I have Mathematica 3.0 for Windows and I hate the way it handles
> subscripts.  I read about the Notation package.  Is there a way to
> make a general rule (e.g. using "Symbolize") that will avoid
> expressions seeing subscripting as an operation?  I can do it on a
> per-symbol basis, but that is really tedious.
>
> Also, I saw some references in the newsgroup to the "latest" version
> of Notation, but the web page of the guy mentioned (somebody named
> Harris I think) is no longer on the wolfram site.
>
> I really hate the 3.0 interpretation of subscripts.  Has it changed in
> 4.0!?
>
> Help!
>
> --
> Michael Tiller
> Ford Motor Company
>
>



  • Prev by Date: Re: equaltity of lists
  • Next by Date: Animated give out of animated Mathematica?
  • Previous by thread: Re: Subscripts, Doh!!!
  • Next by thread: Re: Subscripts, Doh!!!