Question: How do I extract all the coefficients of a polynomial?

August 02 2014 liushunyi 25
Maple 17
1

I want to extract all the coefficients of a polynomial. For example, let p:=x^5-8x^3+2, and the function coeffs(p) returns 1, -8, 2. In fact, I want to obtain 1, 0, -8, 0, 0, 2. Thanks to everyone.

Please Wait...