[GiNaC-list] Polynomial companion matrix
jensv at nikhef.nl
Wed Feb 18 15:59:38 CET 2009
James Jackson schrieb:
> As far as I can see, there is no method available to compute the
> companion matrix of a polynomial. May I suggest the addition of a method
> along these lines?:
sure, we can include such a function.
I am just a bit confused about the conventions here:
> mat(i, j) = -1 * poly.coeff(symbol, rank - j - 1) / majorCoeff;
Shouldn't coefficient c_j go in row j?
More information about the GiNaC-list