Compute condition numbers of a matrix with respect to eigenvalues.
The condition numbers are the reciprocals of the cosines of the angles between the left and right eigenvectors; Large values indicate that the matrix has multiple distinct eigenvalues.
The input a must be a square numeric matrix.
The outputs are:
[v, lambda] = eig (a)
.
[v, lambda] = eig (a)
.
Example
a = [1, 2; 3, 4]; c = condeig (a) ⇒ [1.0150; 1.0150]
See also: eig, cond, balance.
Package: octave