This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Programming / Tests  /
NonNegative

  • NonNegative[ x ] gives True if x is a non-negative number.
  • NonNegative[ x ] gives False if x is manifestly a negative or complex numerical quantity. Otherwise, it remains unevaluated.
  • A definition like NonNegative[ x ] = True effectively specifies that x is a non-negative number.
  • Definitions for Sign are tested in determining whether linear combinations of expressions are non-negative.
  • See also: Negative, Positive, Sign.

    Further Examples

    In[1]:=

    Out[1]=

    In[2]:=

    Out[2]=

    In[3]:=

    Out[3]=