linalg(deprecated)
eigenvalues
compute the eigenvalues of a matrix
Calling Sequence
Parameters
Description
Examples
eigenvalues(A)
eigenvalues(A, C)
eigenvalues(A, 'implicit')
eigenvalues(A, 'radical')
A
-
square matrix
C
matrix of the same shape as A
Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Eigenvalues], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The call eigenvalues(A) returns a sequence of the eigenvalues of A. (Refer to ?sequence).
If A contains floating-point numbers, a numerical method is used where all arithmetic is done at the precision specified by Digits. Note that all the entries of A must be numerical, i.e. of type numeric or complex(numeric).
Otherwise (no floating-point numbers, i.e. the symbolic case), the eigenvalues are computed by solving the characteristic polynomial det⁡lambda⁢I−A=0 for the scalar variable lambda, where I is the identity matrix.
If a second parameter 'implicit' is given, the eigenvalues are expressed using Maple's RootOf notation for algebraic extensions. If the parameter 'radical' is given (the default), Maple tries to express the eigenvalues in terms of exact radicals. Note that if the characteristic polynomial has a factor of degree greater than four, then it may not be possible to express all the eigenvalues in terms of radicals.
The call eigenvalues(A, C) solves the ``generalized eigenvalue problem'', that is, finds the roots of the polynomial det⁡lambda⁢C−A.
The command with(linalg,eigenvalues) allows the use of the abbreviated form of this command.
with⁡linalg:
A≔matrix⁡3,3,1.0,2.0,3.0,1.0,2.0,3.0,2.0,5.0,6.0
A≔1.02.03.01.02.03.02.05.06.0
eigenvalues⁡A
9.32182538049648,7.70062212252683×10−16,−0.321825380496478
A≔matrix⁡3,3,1,2,3,1,2,3,2,5,6
A≔123123256
0,92+932,92−932
eigenvalues⁡A,implicit
0,RootOf⁡_Z2−9⁢_Z−3
See Also
linalg(deprecated)[charpoly]
linalg(deprecated)[eigenvectors]
LinearAlgebra
sequence
Download Help Document