Re: 2.9.2 How Input and Output Work

*To*: mathgroup at smc.vnet.net*Subject*: [mg61858] Re: [mg61834] 2.9.2 How Input and Output Work*From*: Pratik Desai <pdesai1 at umbc.edu>*Date*: Wed, 2 Nov 2005 04:09:26 -0500 (EST)*References*: <200511010539.AAA15747@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Steven T. Hatton wrote: >2.9.2 How Input and Output Work of the online help states that: > >"When you type something like x^2 what Mathematica at first sees is just the >string of characters x, ^, 2. But with the usual way that Mathematica is >set up, it immediately knows to convert this string of characters into the >expression Power[x, 2]." > >What does "immediately" mean in this context? As soon as I press the '2' >key? When I evaluate the cell? If it is the former, then why do I see >"Cell[BoxData[SuperscriptBox["x", "2"]], "Input"]" when I view the >expression? > > For Version 5.1 When I type in x^2 and Ctrl+Shift+E I get >>Cell[BoxData[ RowBox[{"x", "^", "2"}]], "Input", CellLabel->"In[8]:="] When it type Superscript[x,2] >>Cell[BoxData[ RowBox[{ RowBox[{"Superscript", "[", RowBox[{"x", ",", "2"}], "]"}], "\[IndentingNewLine]"}]], "Input", CellLabel->"In[9]:="] I that what you expect to see Pratik . -- Pratik Desai Graduate Student UMBC Department of Mechanical Engineering Phone: 410 455 8134

**References**:**2.9.2 How Input and Output Work***From:*"Steven T. Hatton" <hattons@globalsymmetry.com>