Issimilar
determine similarity of matrices
Calling Sequence
Parameters
Description
Examples
Issimilar(A, B)
Issimilar(A, B, 'P')
A
-
square Matrix
B
'P'
(optional) assigned a transformation matrix
The function Issimilar(A, B) is a placeholder for the boolean valued function that returns true if A is similar to B and false otherwise. It is used in conjunction with either mod or evala.
If called in the form Issimilar(A, B,'P'), then P will be assigned a transformation matrix such that A=inversePBP.
The call Issimilar(A, B) mod p determines if A is similar to B modulo p which is a prime integer. The entries of A and B must have rational coefficients or coefficients from an algebraic extension of the integers modular p.
The call evala(Issimilar(A, B)) determines if A is similar to B where the entries of A and B are algebraic numbers (or functions) defined by RootOfs.
withLinearAlgebra:
A≔Matrix1,2,3,4,5,6,7,8,9
A≔123456789
p≔11
cA≔CharacteristicPolynomialA,xmodp
cA≔x3+7x2+4x
B≔CompanionMatrixcA,x
B≔00010−401−7
IssimilarA,B,Pmodp
true
P
868823100
P−1·B·Pmod11
123456789
See Also
Domains
LinearAlgebra
LinearAlgebra[IsSimilar]
LinearAlgebra[Modular]
mod
Download Help Document