Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Why Not[] is not Listable by default ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51479] Why Not[] is not Listable by default ?
  • From: János <janos.lobb at yale.edu>
  • Date: Tue, 19 Oct 2004 02:55:56 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

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