IsNonNegative
Tests if a numeric entity is nonnegative.
Syntax

IsNonNegative(x[, ε])

x
is a number, a vector, or a matrix 
ε
is a positive number

Description
If x
is a number, a vector, or a matrix, then IsNonNegative(x, ε)
returns true
iff x
is nonnegative, all components of x
are nonnegative, or all entries of x
are nonnegative, respectively. Floatingpoint numbers are compared using epsilon ε
. If omitted, a default (nonzero) value will be used for ε
.
Examples
IsNonNegative(IdentityMatrix(5))
true