build a polynomial matrix from its coefficients
[P]=inv_coeff(C,[,d,[name])
:C a big matrix of the coefficients : :d a polynomial matrix degree. The optional parameter with default
value d=-1+size(C,’c’)/size(C,’r’)
:
P=inv_coeff(Mp,k), when k is compatible with Mp size, returns a polynomial matrix of degree k. C=[C0,C1,...,Ck] and P= C0 + C1*x +... +Ck*x^k.
A=`int`_(10*`rand`_(2,6))
// Building a degree 1 polynomial matrix
P=inv_coeff(A,1)
`norm`_(`coeff`_(P)-A)
// Using default value for degree
P1=inv_coeff(A)
`norm`_(`coeff`_(P1)-A)