Ask Your Question

Revision history [back]

Coefficients of polynomial of fixed degree

How can we extract the coefficient of any polynomial as a fixed degree polynomial? For example, if we have $a=2+3*x$, then a.polynomial().coefficient() will extract (3,2), but I need the polynomial of degree 3, and the output will be (0,0,3,2).

Coefficients of polynomial of fixed degree

How can we extract the coefficient of any polynomial as a fixed degree polynomial? For example, if we have $a=2+3*x$, then a.polynomial().coefficient() will extract (3,2), but I need the polynomial of degree 3, and the output will be (0,0,3,2).(3,2,0,0).

Coefficients of polynomial of fixed degree

How can we extract the coefficient of any polynomial as a fixed degree polynomial? For example, if we have $a=2+3*x$, then a.polynomial().coefficient() will extract (3,2), (2,3), but I need the polynomial of degree 3, and the output will be (3,2,0,0).(2,3,0,0).