MathGroup Archive 1999

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

Search the Archive

MakeExpression

  • To: mathgroup at smc.vnet.net
  • Subject: [mg21343] MakeExpression
  • From: "Drago Ganic" <drago.ganic at in2.hr>
  • Date: Mon, 27 Dec 1999 01:37:51 -0500 (EST)
  • Organization: HiNet
  • Sender: owner-wri-mathgroup at wolfram.com

Hi !

can somebody explain me why  the following expression is correct (The Book 2.8.17)

MakeExpression [
  RowBox [{x_, SubscriptBox ["\[CirclePlus]", n_],  y_ }], StandardForm
] :=  MakeExpression [ RowBox [ {"gplus", "[", x, ",", y, ",", n, "]" }], StandardForm ]

and this one is incorrect

MakeExpression [ 
  RowBox [{ x_, SubscriptBox ["\[CirclePlus]", n_], y_ }], StandardForm 
] :=  gplus [ x, y, n ]

I don't understand it, because  gplus [ x, y, n ]  IS an expression. I suppose the only reason is that I don't use the StandardForm explicitly on the rhs.

Because of the that (if I'm right) I have _always_ make definitions in the form

MakeExpression [ boxpattern, formpattern   
:=  
MakeExpression [ boxes, form]  

Is my reasoning right ?


Greetings,
Drago Ganic




  • Prev by Date: Re: Circuit Analyses with Mathematica
  • Next by Date: Re: Circuit Analyses with Mathematica
  • Previous by thread: Re: RowBox-es
  • Next by thread: Interpretation of wrog use of Operators