Home / Get Math Help
Nonnegative
Usage
NonNegative[x] gives True if x is a non-negative number.
Basic example
Evaluate different types of numbers: In[1]:=NonNegative[{1.6, 3/4, Pi, 0, -5, 1 + I, Sin[10^5]}] Out[1]={True, True, True, True, False, False, True} Quantities that are not NumericQ remain unevaluated: In[2]:=NonNegative[{x, Sin[y]}] Out[2]={NonNegative[x], NonNegative[Sin[y]]}
Attributes
Listable | Protected
Relationships with other entities
Negative | Positive | NonPositive | RealSign | Greater | Simplify | Assumptions
Typical ranks of usage in programs
1036th most common (1 in 108000 symbols)
640th most common (1 in 71100 symbols)
3099th most common (1 in 108000 symbols)
History
introduced in Version 1 (June 1988)
Timeline