Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Programming / Logical Operations  /
Not

  • ! expr is the logical NOT function. It gives False if expr is True, and True if it is False.
  • Not[ expr ] can be input in StandardForm and InputForm as ¬expr. The character ¬ can be entered as !, not or \[Not].
  • Not gives symbolic results when necessary, and applies various simplification rules to them.
  • If you are using Mathematica with a text-based front end, then you cannot use the notation ! expr for Not[ expr ] if it appears at the very beginning of a line. In this case, ! expr is interpreted as a shell escape.
  • See the Mathematica book: Section 1.5.6.
  • See also: LogicalExpand.

    Further Examples

    In[1]:=

    In[2]:=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.