[back] [prev] [next] [index] [root]

 


PolyToList

Returns the coefficients of a polynomial in a list.

Syntax:

L := PolyToList(f);

list
  L  
polynomial
  f  

See also:  Poly

Description:

Given a polynomial f(x) := \sum_{i=0}^n c_i x^i the function returns L := [c_n, c_{n-1}, … , c_0].


Example:

List of coefficients of the polynomial x^5 + 2*x^4 + 3*x^3 + 4*x^2 + 5*x + 6\inZ[x]:

kash> f := Poly(Zx, [1, 2, 3, 4, 5, 6]);
x^5 + 2*x^4 + 3*x^3 + 4*x^2 + 5*x + 6
kash> PolyToList(f);
> [ 1, 2, 3, 4, 5, 6 ]


<- back[back] [prev] [next] [index] [root]