Re: About subscripts
- To: mathgroup at smc.vnet.net
- Subject: [mg65387] Re: About subscripts
- From: ted.ersek at tqci.net
- Date: Wed, 29 Mar 2006 06:34:34 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
I have a package on MathSource called SubscriptSymbols. Somebody wanted to use it to Symbolize E or I with an Integer subscript. I can fix the package to allow that. However, to get it right I need to know how to make the simple function MakeString[s] below. In[1]:= { MakeString[E], MakeString[ \[ExponentialE] ] }//InputForm Out[1]= { "E", "\[ExponentialE]" ] The obvious solution ToString doesn't do it, and I can't find a solution. In[2]:= { ToString[E], ToString[ \[ExponentialE] ] }//InputForm Out[2]= {"E", "E"} -------------------- It would be just as good if instead I had the function IdenticalQ below. It has to work with arguments that are Symbols. In[3]:= { IdenticalQ[E,E], IdenticalQ[E, \[ExponentialE] ], IdenticalQ[ \[ExponentialE], E], IdenticalQ[ \[ExponentialE], \[ExponentialE] ] } Out[3]= {True, False, False, True} -------------------- Thanks, Ted Ersek