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 > Positive >
Mathematica > Core Language > Procedural Programming > Conditionals > Testing Expressions > Positive >

Positive

Positive[x]
gives True if x is a positive number.
  • Positive[x] gives False if x is manifestly a negative numerical quantity, a complex numerical quantity, or zero. 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