= (Vector)

Сompares vectors by precisely comparing all their corresponding coordinates.

Arguments

vector0
and
vector1
are the Vectors to compare. If the vectors have different dimensions, an error will occur.

Return values

condition
is TRUE if the vectors are equal, FALSE otherwise.

Complexity

O(dimension)

Example

"sl/algebra" useFile v1: (1.0 2.0 3.0) makeVector; v2: (1.0 3.0 2.0) makeVector; v3: (0.0 -1.0 1.0) makeVector; v1 v2 = print LF print v1 v2 v3 + = print
Output:
FALSE TRUE