MathGroup Archive 2010

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

Search the Archive

Infix doesn't worj with precedence and grouping

It is told in help, that

Infix[expr,h,precedence,grouping] can be used to specify how the
output form should be parenthesized.

but actually it doesn't work:

Format[EClass[x___]] := Infix[{x}, "=", 290, None]
In[40]:= EClass[a, b, c]
Out[40]= Infix[{a, b, c}, "=", 290, None]


In[65]:= Format[EClass[x___]] := Infix[{x}, "="]
In[66]:= EClass[a, b, c]
Out[66]= Infix[{a, b, c}, "="]


So how to specify precedence for infix format?


  • Prev by Date: Re: MathLink and c++ compiler
  • Next by Date: Re: Graphics: How to get values corresponding to Automatic?
  • Previous by thread: Re: adding lists term by term
  • Next by thread: Re: Infix doesn't worj with precedence and grouping