powered by
numeric vector
L2.norm(x)
numeric
x
L1.dist
## Define a numeric vector y <- c(1, 2, 3, 4) ## Calculate the L2 norm of the vector y L2.norm(y)
Run the code above in your browser using DataLab