powered by
linfnorm(u,v)
max(abs(u-v))
l2norm
wstCV
wstCVl
# # What is the L infinity norm between the following sets of vectors # p <- c(1,2,3,4,5) q <- c(1,2,3,4,5) r <- c(2,3,4,5,6) linfnorm(p,q) # [1] 0 linfnorm(q,r) # [1] 1 linfnorm(r,p) # [1] 1
Run the code above in your browser using DataLab