Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

why MakeExpression acts differently

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121314] why MakeExpression acts differently
  • From: Arturas Acus <arturas.acus at tfai.vu.lt>
  • Date: Fri, 9 Sep 2011 05:50:51 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

Dear Group,

Compare two inputs:


In[1]:
MakeExpression[RowBox[List["a","\[CenterDot]","b","\[CenterDot]","c"]],StandardForm]

Out[1]:
Cell[BoxData[
 RowBox[{"HoldComplete", "[", 
  RowBox[{"a", "\[CenterDot]", "b", "\[CenterDot]", "c"}], "]"}]],
"Output"]

and 


In[2]:
MakeExpression[RowBox[List["a","\:2219","b","\:2219","c"]],StandardForm]

Out[2]:
Cell[BoxData[
 RowBox[{"HoldComplete", "[", 
  RowBox[{"a", " ", "�", " ", "b", " ", "�", " ", "c"}], "]"}]],
"Output"]


We see that " " is aditionally entered in last calculation output. This
means that content of the boxes is interpreted as Times[a,b,c], which is
not what I want.

The difference of \:2219 (a variant of unicode center dot) and
\[CenterDot] is that the first symbol mathematica knows as "Letter" and
the second as Infix operator without meaning.

How can I achieve, that  \:2219 behaved in the same way as
\[CenterDot]?

Sincerely, Arturas Acus








  • Prev by Date: DiscretePlot filling is darker above axis than below
  • Next by Date: Re: applying a real texture in Mathematica
  • Previous by thread: Re: DiscretePlot filling is darker above axis than below
  • Next by thread: Manipulate inside module