Vector.isZero

Checks if the vector is a zero vector.

Arguments

None

Return values

condition
is TRUE if all coordinates of the vector are exactly zero, FALSE otherwise.

Complexity

O(dimension)

Example

"sl/algebra" useFile v1: (1.0 2.0 3.0) makeVector; v2: (0.0 0.0 0.0) makeVector; v1.isZero print LF print v2.isZero print
Output:
FALSE TRUE