Inner Product
t(x) %*% y
Norm
norm(x, type = "2")
Cosine Angle
(t(x) %*% y)/(norm(x, "2")*norm(y, "2"))