MathGroup Archive 2004

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

Search the Archive

Why Not[] is not Listable by default ?


In[191]:=
Not[Table[False,{i,3}]]==Map[Not,Table[False,{i,3}]]

Out[191]=
(!{False,False,False})\[Equal]{True,True,True}

Should Not[] be Listable by default ?  BOOK says: "â?¼ Most builtâ??in 
mathematical functions are Listable. "

Of course I can always do SetAttributes[Not,Listable], but I do not 
know what kind of harm does it do on the long run.  /I assume Not[] is 
widely/wildly used inside Mathematica/

Any Pros and Cons on it ?

János
P.S.  Sorry if it is an old bone, I just want to see clearly the 
argument for it :)

----------------------------------------------
Trying to argue with a politician is like lifting up the head of a 
corpse.
(S. Lem: His Master Voice)


  • Prev by Date: Re: viewing 3D surfaces
  • Next by Date: Re: Solving an equation
  • Previous by thread: Re: Pretty print
  • Next by thread: Relative hyperlink