MathGroup Archive 2006

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

Search the Archive

Plus Behavior Inside a Notation Box?

  • To: mathgroup at
  • Subject: [mg64884] Plus Behavior Inside a Notation Box?
  • From: "Josh" <josh at>
  • Date: Mon, 6 Mar 2006 05:01:50 -0500 (EST)
  • Sender: owner-wri-mathgroup at

I was trying to set up some aliases using the Notation package and
noticed some odd behavior when Plus[] is included in the right hand
side.  I distilled it down to the following, and I'm hoping someone can
shed some light on this.  The command I set up is:

Notation[a <=> Plus[b,c] ]

With the following behavior:

In[1]:=     b + c
Out[1]=   a

In[2]:=     b + c + 1
Out[2]=   1+b+c

In[3]:=     b + c + 0
Out[3]=   a

Case 1 and 3 work as expected, but case 2 is not.  Any ideas?  The goal
is to set up aliases for Bessel and Hankel functions in some EM work,
and it was working very nicely until I hit this 'minor' roadblock.



  • Prev by Date: Re: Extract values and multilpicities from list
  • Next by Date: Re: 3D voronoi problem in mathematica
  • Previous by thread: Re: Compile Fourier
  • Next by thread: Re: Plus Behavior Inside a Notation Box?