Mathematica 9 is now available
 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]=



    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.