powered by
This function is used to normalize a vector to have unit length
norm(x)
a numeric vector
a normalized vector with length 1