Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Programming / Tests  /
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.
  • A definition like Positive[ x ] = True effectively specifies that x is a positive number.
  • Definitions for Sign are tested in determining whether linear combinations of expressions are positive.
  • See also: Negative, NonNegative, Sign.

    Further Examples

    Positive is unsure about -x so doesn't evaluate it further.

    In[1]:=

    Out[1]=



    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.