R Under development (unstable) (2023-11-08 r85496 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > ## > ## c o n d . r Test suite > ## > > > cond <- pracma::cond > normest <- pracma::normest > > hilb <- pracma::hilb > all.equal(c(cond(hilb(1)), cond(hilb(2)), cond(hilb(3)), cond(hilb(4))), + c(1, 19.281470, 524.056778, 15513.738739), + tolerance = 1e-6) [1] TRUE > magic <- pracma::magic > all.equal(normest(magic(5)), max(svd(magic(5))$d)) [1] TRUE > all.equal(normest(pracma::magic(100)), 500050) [1] TRUE > > proc.time() user system elapsed 0.12 0.09 0.15