Algosim documentation: IsNegative

IsNegative

Tests if a numeric entity is negative.

Syntax

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

See also