IsNonPositive
Tests if a numeric entity is non-positive.
Syntax
-
IsNonPositive(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 IsNonPositive(x, ε)
returns true
iff x
is non-positive, all components of x
are non-positive, or all entries of x
are non-positive, respectively. Floating-point numbers are compared using epsilon ε
. If omitted, a default (non-zero) value will be used for ε
.
Examples
IsNonPositive(−IdentityMatrix(5))
true