IntegerCharacteristicPolynomial - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


LinearAlgebra[Modular]

  

IntegerCharacteristicPolynomial

  

computation of the characteristic polynomial of an integer matrix using modular methods

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IntegerCharacteristicPolynomial(A, lambda)

Parameters

A

-

square matrix with integer entries

lambda

-

variable to use for output characteristic polynomial

Description

• 

The IntegerCharacteristicPolynomial function computes the characteristic polynomial for a square Matrix with integer entries. This is a programmer level function, and it does not perform argument checking. Thus, argument checking must be handled external to this function.

  

Note: The IntegerCharacteristicPolynomial routine uses a probabilistic approach that achieves great gains for structured systems. Information on controlling the probabilistic behavior can be found in _EnvProbabilistic.

• 

This command is part of the LinearAlgebra[Modular] package, so it can be used in the form IntegerCharacteristicPolynomial(..) only after executing the command with(LinearAlgebra[Modular]).  However, it can always be used in the form LinearAlgebra[Modular][IntegerCharacteristicPolynomial](..).

Examples

> 

with⁡LinearAlgebraModular:

> 

M≔Matrix⁡2,1,3,4,3,1,−2,1,−3

M≔213431−21−3

(1)
> 

IntegerCharacteristicPolynomial⁡M,x

x3−2⁢x2−8⁢x−20

(2)
> 

LinearAlgebra:-CharacteristicPolynomial⁡M,x

x3−2⁢x2−8⁢x−20

(3)

This function is provided as a high-efficiency function for computation of characteristic polynomials for larger matrices. For example:

> 

M≔LinearAlgebra:-RandomMatrix⁡50,50,density=0.5,generator=−99..99,outputoptions=datatype=integer

M≔39−6400019−16050−3…−8748035−20−750000…−480−46−10081−1−50…0056−24081−78260−74…−62773213041−4−2190…−63670000012−860…0094−98005−60058…−97180030−57082430…00−71700−5400−200…−5745−1000−46−80−9500…⋮⋮⋮⋮⋮⋮⋮⋮⋮⋮50 × 50 Matrix

(4)
> 

tt≔time⁡:

> 

p1≔IntegerCharacteristicPolynomial⁡M,x:

> 

t1≔time⁡−tt

t1≔0.028

(5)
> 

_EnvDisableModular≔true:

> 

tt≔time⁡:

> 

p2≔LinearAlgebra:-CharacteristicPolynomial⁡M,x:

> 

t2≔time⁡−tt

t2≔0.757

(6)
> 

expand⁡p1−p2

0

(7)

Speed-up factor:

> 

t2t1

27.03571429

(8)

See Also

LinearAlgebra/Details

LinearAlgebra[CharacteristicPolynomial]

LinearAlgebra[Modular]