swh:1:snp:81eadaa089e8253d8469bcef66aa332632c6c669
Tip revision: c1688b374d201c13fb40b4dda2d2a89e34b94ec6 authored by Hans W. Borchers on 23 January 2021, 09:10:02 UTC
version 2.3.3
version 2.3.3
Tip revision: c1688b3
norm.R
##
## n o r m Test suite
##
Norm <- pracma::Norm
identical(Norm(c(3, 4)), 5)
identical(Norm(c(1, 1, 1), p=2), sqrt(3))
identical(Norm(1:10, p = 1), sum(1:10)+0.0)
identical(Norm(1:10, p = 0), Inf)
identical(Norm(1:10, p = Inf), max(1:10))
identical(Norm(1:10, p = -Inf), min(1:10))