2. Normality. A vector, a
, is normal if its Euclidean norm is 1:
$$||a|| = \sqrt{a \cdot a} = \sqrt{\sum_{i=1}^{N}a_{i}^{2}} = 1$$
In the previous exercise, you computed the dot product of vectors. We can compute the Euclidean norm by taking the dot
product of a vector with itself, and then taking the square root of the resulting quantity. You can use %*%
to compute
the dot product and sqrt()
to compute the square root.
Check whether each pair of vectors in the set {a, b, c}
is normal. Note that each vector has been defined for you.