Previous Up Next

5.57.7  Singular values (HP compatible): SVL, svl

The SVL (or svl) command takes a square matrix as argument.
SVL returns the singular values of the matrix.

The singular values of a matrix A are the positive square roots of the eigenvalues of A· AT. So, if A is symmetric, the singular values are the absolute values of the eigenvalues of A.

Input:

SVL([[1,2],[3,4]])

or:

svl([[1,2],[3,4]])

Output:

[0.365966190626,5.46498570422]

Input:

evalf(sqrt(eigenvals([[1,2],[3,4]]*[[1,3],[2,4]])))

Output:

5.46498570422,0.365966190626

Input:

SVL([[1,4],[4,1]])

or:

svl([[1,4],[4,1]])

or:

[5.0,3.0]

or:

abs(eigenvals([[1,4],[4,1]]))

Output:

5,3

Previous Up Next