∥ (parallel to)
Checks if two vectors are parallel.
Syntax
-
u ∥ v-
uandvare vectors of the same dimension
-
Description
If u and v are vectors of the same dimension, then u ∥ v is true iff u and v are parallel, that is, iff there exists a scalar κ such that u = κ⋅v or v = κ⋅u.
Notes
The ∥ operator is implemented by the AreParallel function. This function also supports a third argument specifying the epsilon to use for floating-point comparison.
Examples
❨−27.6, 40.8, −18❩ ∥ ❨2.3, −3.4, 1.5❩
true
See also
-
⋅ (|, InnerProduct)