MathGroup Archive 2010

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

Search the Archive

SetAttributes[CenterDot, Flat]


Hi,

Setting the Flat attribute for CenterDot seems to cause iteration problems.
By my definitions CenterDot[x] and CenterDot[x,y] should just evaluate
to x and CenterDot[x,y] not the iteration mess below.
Is this a bug?

Thanks,
Dave Snead

In[1]:= $IterationLimit = 20

Out[1]= 20

In[2]:= SetAttributes[CenterDot, Flat]

In[3]:= CenterDot[] := 1

In[4]:= CenterDot[a_] := a

In[5]:= CenterDot[x, y]

During evaluation of In[5]:= $IterationLimit::itlim: Iteration limit of 20 
exceeded. >>

Out[5]= Hold[
1\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\
\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\
\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\
\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]x\
\[CenterDot]y]

In[6]:= CenterDot[x]

During evaluation of In[6]:= $IterationLimit::itlim: Iteration limit of 20 
exceeded. >>

Out[6]= Hold[
1\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\
\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\
\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\
\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]1\[CenterDot]x]

In[7]:= CenterDot[]

Out[7]= 1 




  • Prev by Date: Re: Plot and DSolve
  • Next by Date: Re: Plotting functions and lines on the same figure?
  • Previous by thread: Re: Sort a List, in a List of Lists of Lists
  • Next by thread: Plotting functions and lines on the same figure?