 linalg(deprecated)/charmat - Maple Help

linalg(deprecated)

 charmat
 construct the characteristic matrix Calling Sequence charmat(A, lambda) Parameters

 A - square matrix lambda - name or algebraic expression Description

 • Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[CharacteristicMatrix], instead.
 - For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
 • The function charmat constructs the characteristic matrix $M=I\mathrm{\lambda }-A$, where I is the identity matrix. If lambda is a name, then $\mathrm{det}\left(M\right)$ is the characteristic polynomial.
 • The command with(linalg,charmat) allows the use of the abbreviated form of this command. Examples

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[CharacteristicMatrix], instead.

 > $\mathrm{with}\left(\mathrm{linalg}\right):$
 > $A≔\mathrm{matrix}\left(3,3,\left[1,2,3,1,2,3,1,5,6\right]\right)$
 ${A}{≔}\left[\begin{array}{ccc}{1}& {2}& {3}\\ {1}& {2}& {3}\\ {1}& {5}& {6}\end{array}\right]$ (1)
 > $\mathrm{charmat}\left(A,\mathrm{λ}\right)$
 $\left[\begin{array}{ccc}{\mathrm{\lambda }}{-}{1}& {-2}& {-3}\\ {-1}& {\mathrm{\lambda }}{-}{2}& {-3}\\ {-1}& {-5}& {\mathrm{\lambda }}{-}{6}\end{array}\right]$ (2)