Student[LinearAlgebra]
IsSimilar
determine if two Matrices are similar
Calling Sequence
Parameters
Description
Examples
IsSimilar(A, B, options)
A
-
square Matrix
B
options
(optional) parameters; for a complete list, see LinearAlgebra[IsSimilar]
The IsSimilar(A, B) command returns false if A and B are not similar, and otherwise returns the expression sequence true, P, where P is the similarity transformation matrix, that is, A=P−1·B·P.
If either of the Matrices has a floating-point data type, then each must evaluate to a purely floating-point Matrix. In this case, the result of IsSimilar is achieved by making a numeric comparison of the eigenvalues of each Matrix.
with⁡StudentLinearAlgebra:
IsSimilar⁡1,2|3,4,9,17|−2,−4
true,104−32
A≔3,1|2,2
A≔3212
B≔DiagonalMatrix⁡1,4
B≔1004
S≔IsSimilar⁡A,B
S≔true,−13232323
S2−1·B·S2
3212
See Also
LinearAlgebra[IsSimilar]
Student[LinearAlgebra][Eigenvalues]
Student[LinearAlgebra][JordanForm]
Download Help Document