poly2sym - Maple Help

MTM

 poly2sym
 convert coefficients to a polynomial

 Calling Sequence poly2sym(M,x)

Parameters

 M - matrix, vector, array, or scalar x - (optional) symbol

Description

 • The poly2sym(M,x) function returns a polynomial with indeterminate x, using the elements of M as coefficients.

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $M≔\mathrm{Matrix}\left(1,3,'\mathrm{fill}'=1\right):$
 > $\mathrm{poly2sym}\left(M\right)$
 ${{x}}^{{2}}{+}{x}{+}{1}$ (1)
 > $M≔\mathrm{Matrix}\left(\left[\left[1,2,3\right],\left[4,5,6\right]\right]\right):$
 > $\mathrm{poly2sym}\left(M,'y'\right)$
 ${{y}}^{{5}}{+}{2}{}{{y}}^{{4}}{+}{3}{}{{y}}^{{3}}{+}{4}{}{{y}}^{{2}}{+}{5}{}{y}{+}{6}$ (2)