| 1 | initial version |
If p is a polynomial, then matrix.companion(p) returns a matrix which has p as its characteristic polynomial. Since such matrices are not unique, you shouldn't expect it to give the precise matrix that you've specified.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.