linalg(deprecated)
charpoly
compute the characteristic polynomial of a matrix
Calling Sequence
Parameters
Description
Examples
charpoly(A, lambda)
A
-
square matrix
lambda
name or algebraic expression
Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[CharacteristicPolynomial], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The function charpoly computes the characteristic polynomial of the matrix A=det⁡I⁢λ−A, where I is the identity matrix and n is the dimension of A.
The command with(linalg,charpoly) allows the use of the abbreviated form of this command.
with⁡linalg:
A≔matrix⁡3,3,1,2,3,1,2,3,1,5,6
A≔123123156
charpoly⁡A,x
x3−9⁢x2
See Also
linalg(deprecated)[charmat]
linalg(deprecated)[eigenvals]
linalg(deprecated)[minpoly]
LinearAlgebra
Download Help Document