[GiNaC-list] Polynomial companion matrix

Jens Vollinga jensv at nikhef.nl
Wed Feb 18 15:59:38 CET 2009


Hi James,

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?

Regards,
Jens



More information about the GiNaC-list mailing list