Scilab Function

spec - eigenvalues of matrices and pencils

Calling Sequence

evals=spec(A)
[X,diagevals]=spec(A)
evals=spec(A,E)
[al,be]=spec(A,E)
[al,be,Z]=spec(A,E)
[al,be]=spec(A,E)
[al,be,Q,Z]=spec(A,E)

Parameters

Description

  • spec(A) : evals=spec(A) returns in vector evals the eigenvalues of A.
  • [evals,X] =spec(A) returns in addition the eigenvectors A (if they exist). See also bdiag

  • spec(A,B) : evals=spec(A,E) returns the spectrum of the matrix pencil s E - A, i.e. the roots of the polynomial matrix s E - A.
  • [al,be] = spec(A,E) returns the spectrum of the matrix pencil s E - A, i.e. the roots of the polynomial matrix s E - A. The eigenvalues are given by al./be and if be(i) = 0 the ith eigenvalue is at infinity. (For E = eye(A), al./be is spec(A)).

    [al,be,Z] = spec(A,E) returns in addition the matrix Z of generalized right eigenvectors of the pencil.

    [al,be,Q,Z] = spec(A,E) returns in addition the matrix Q and Z of generalized left and right eigenvectors of the pencil.

    REFERENCES

    Examples

    See Also