find_companion INDEX

FIND_COMPANION _ _ _ _ _ _ _ _ _ _ _ _ operator

syntax:

find_companion(<matrix>,<x>)

<matrix> :- a matrix.

<x> :- the variable.

Given a companion matrix, find_companion finds the polynomial from which it was made.

examples:



C := companion(x^4+17*x^3-9*x^2+11,x); 


       [0  0  0  -11]
       [            ]
       [1  0  0   0 ]
  c := [            ]
       [0  1  0   9 ]
       [            ]
       [0  0  1  -17]



find_companion(C,x); 

   4     3    2
  x +17*x -9*x +11

Related functions: companion.