Symbolic Math Toolbox    

Singular Value Decomposition

Only the variable-precision numeric computation of the complete singular vector decomposition is available in the toolbox. One reason for this is that the formulas that result from symbolic computation are usually too long and complicated to be of much use. If A is a symbolic matrix of floating-point or variable-precision numbers, then

computes the singular values of A to an accuracy determined by the current setting of digits. And

produces two orthogonal matrices, U and V, and a diagonal matrix, S, so that

Let's look at the n-by-n matrix A with elements defined by

For n = 5, the matrix is

It turns out many of the singular values of these matrices are close to .

The most obvious way of generating this matrix is

The most efficient way to generate the matrix is

Since the elements of A are the ratios of small integers, vpa(A) produces a variable-precision representation, which is accurate to digits precision. Hence

computes the desired singular values to full accuracy. With n = 16 and digits(30), the result is

There are two ways to compare S with pi, the floating-point representation of . In the vector below, the first element is computed by subtraction with variable-precision arithmetic and then converted to a double. The second element is computed with floating-point arithmetic:

The results are

Since the relative accuracy of pi is pi*eps, which is 6.9757e-16, either column confirms our suspicion that four of the singular values of the 16-by-16 example equal to floating-point accuracy.


  Jordan Canonical Form Eigenvalue Trajectories