
Last chance! 50% off unlimited learning
Sale ends in
rcond(x, ...)
x
.Condition numbers are usually estimated, since exact computation is costly in terms of floating-point operations. An (over) estimate of reciprocal condition number is given, since by doing so overflow is avoided. Matrices are well-conditioned if the reciprocal condition number is near 1 and ill-conditioned if it is near zero.
x <- Matrix(rnorm(9), 3, 3)
rcond(x)
rcond(hilbert(9)) # should be about 9.1e-13
h9 <- hilbert(9)
class(h9) <- Matrix.class(h9) # now Hermitian
rcond(h9) # slightly different answer - different algorithm
Run the code above in your browser using DataLab