Getting the coefficients of a polynomial



Not really -- coeflist seems to have a lot of useful functionality, but is
not efficient for the simple cases.  In particular, the first thing that
$coeffs does is to ratdisrep its argument!

        -s


On Wed, Apr 17, 2013 at 4:02 PM, Anton Voropaev
<anton.n.voropaev at gmail.com>wrote:

> Maybe this is what you are looking for?
>
> (%i1) load("coeflist");
> (%o1)
> "C:/PROGRA~1/MAXIMA~1.0-2/share/maxima/5.28.0-2/share/contrib/format/coeflist.lisp"
>
> (%i2) coeffs(x^3+a*x+1,x);
> (%o2) [[%poly,x],[1,0],[a,1],[1,3]]
>
>