1. Orthogonality. Two vectors, a
and b
are orthogonal if their dot product is equal to zero:
$$a \cdot b = \sum_{i=1}^{N} a_{i}b_{i} = 0$$
In R
, we can compute the dot product of two vectors with the %*%
operator.
Check whether each pair of vectors in the set {a, b, c}
is orthogonal. Note that each vector has been defined for you.