sym2poly - Maple Help

MTM

 sym2poly
 convert polynomial to a vector of coefficients

 Calling Sequence sym2poly(P)

Parameters

 P - polynomial

Description

 • The sym2poly(P) function returns a vector containing the coefficients of the polynomial P.
 • The indeterminate of P is determined by findsym(P,1).

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $\mathrm{sym2poly}\left({y}^{5}+2{y}^{4}+3{y}^{3}+4{y}^{2}+5y+6\right)$
 $\left[\begin{array}{c}{1}\\ {2}\\ {3}\\ {4}\\ {5}\\ {6}\end{array}\right]$ (1)
 > $\mathrm{sym2poly}\left({y}^{5}+2{y}^{4}+3{y}^{3}+4{y}^{2}+5y+6x\right)$
 $\left[\begin{array}{c}{6}\\ {{y}}^{{5}}{+}{2}{}{{y}}^{{4}}{+}{3}{}{{y}}^{{3}}{+}{4}{}{{y}}^{{2}}{+}{5}{}{y}\end{array}\right]$ (2)