Algosim documentation: IsPositive

IsPositive

Tests if a numeric entity is positive.

Syntax

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

See also