Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Expressions > Testing Expressions > NonNegative >
Mathematica > Core Language > Procedural Programming > Conditionals > Testing Expressions > NonNegative >

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.
Evaluate different types of numbers:
Quantities that are not NumericQ remain unevaluated:
Evaluate different types of numbers:
In[1]:=
Click for copyable input
Out[1]=
Quantities that are not NumericQ remain unevaluated:
In[2]:=
Click for copyable input
Out[2]=
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF