6.27.5 Converting from a symbolic polynomial: e2rsymb2poly
The e2r command converts a symbolic
polynomial into a list (for single variable polynomials) or a sum of
monomials. symb2poly is a synonym for e2r.
e2r takes two arguments:
P, a symbolic polynomial.
vars, the variable name (for one variable
polynomials) or a list of variable names (for multivariable
polynomials).
For one variable polynomials, this is optional and defaults to
x.
e2r(P ⟨,vars⟩) returns:
the representation of the polynomial as a list of
coefficients written in decreasing order, if vars is a
variable name.
a sum of monomials (sparse representation of multivariate
polynomials) if vars is a list.