IsNegative
Tests if a numeric entity is negative.
Syntax
-
IsNegative(x[, ε])-
xis a number, a vector, or a matrix -
εis a positive number
-
Description
If x is a number, a vector, or a matrix, then IsNegative(x, ε) returns true iff x is negative, all components of x are negative, or all entries of x are negative, respectively. Floating-point numbers are compared using epsilon ε. If omitted, a default (non-zero) value will be used for ε.
Examples
IsNegative(−IdentityMatrix(5))
false