IsZero
Tests if a numeric entity is zero.
Syntax
-
IsZero(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 IsZero(x, ε)
returns true
iff x
is the number zero, the zero vector of its dimension, or the zero matrix of its size, respectively, comparing floating-point values using epsilon ε
. If omitted, a default (non-zero) value for ε will be used.
Examples
A ≔ ❨❨1/10, 0❩, ❨0, 1/10❩❩
⎛0.1 0⎞ ⎝ 0 0.1⎠
IsZero(A^20)
true