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