Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

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



  • Prev by Date: 72 dpi vs actual dpi
  • Next by Date: Problem with Thread over Plus?
  • Previous by thread: Re: About subscripts
  • Next by thread: Exporting plots with the kernel