Previous Up Next

11.1.5  Converting from a symbolic polynomial

The e2r or symb2poly command converts a symbolic polynomial into a list (for single variable polynomials) or a sum of monomials.

Examples

e2r(x^2-1)

or:

symb2poly(x^2-1)

or:

symb2poly(y^2-1,y)

or:

e2r(y^2-1,y)
     
▯ 1,0,−1 ▯           
e2r(x^2-x*y+y,[x,y])

or:

symb2poly(x^2-x*y+2*y,[x,y])
     
%%%{1,[2,0]%%%}+%%%{−1,[1,1]%%%}+%%%{2,[0,1]%%%}           

Previous Up Next