|
7.7.4.0. poly2list
Procedure from library dmodapp.lib (see dmodapp_lib).
- Usage:
- poly2list(f); f a poly
- Return:
- list of exponents and corresponding terms of f
- Purpose:
- convert a polynomial to a list of exponents and corresponding terms
Example:
| LIB "dmodapp.lib";
ring r = 0,x,dp;
poly F = x;
poly2list(F);
==> [1]:
==> [1]:
==> 1
==> [2]:
==> x
ring r2 = 0,(x,y),dp;
poly F = x2y+x*y2;
poly2list(F);
==> [1]:
==> [1]:
==> 2,1
==> [2]:
==> x2y
==> [2]:
==> [1]:
==> 1,2
==> [2]:
==> xy2
|
|