Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Polynomial Algebra > Polynomial Systems >

CoefficientList

CoefficientList[poly, var]
gives a list of coefficients of powers of var in poly, starting with power 0.
CoefficientList[poly, {var1, var2, ...}]
gives an array of coefficients of the vari.
  • Terms that do not contain positive integer powers of a particular variable are included in the first element of the list for that variable.
  • CoefficientList always returns a full rectangular array. Combinations of powers that do not appear in poly give zeros in the array.
  • CoefficientList works whether or not poly is explicitly given in expanded form.
Find the coefficients in a polynomial:
CoefficientList works even when the polynomial has not been expanded out:
Matrix of coefficients for a quadratic form:
Find the coefficients in a polynomial:
In[1]:=
Click for copyable input
Out[1]=
 
CoefficientList works even when the polynomial has not been expanded out:
In[1]:=
Click for copyable input
Out[1]=
 
Matrix of coefficients for a quadratic form:
In[1]:=
Click for copyable input
Out[1]=
Univariate polynomial coefficient lists:
Multivariate polynomial coefficient lists:
Coefficient list over the integers modulo 2:
Use Coefficient to get a coefficient at a specified power of the variable:
The list of coefficients can be obtained using Coefficient and Exponent:
FromDigits can reconstruct a univariate polynomial from the list of its coefficients:
Fold the operation for multivariate polynomials:
Polynomial multiplication is convolution as performed by ListConvolve:
For multivariate polynomials CoefficientList gives a tensor of the coefficients:
CoefficientArrays gives the list of arrays of polynomial coefficients ordered by total degrees:
The coefficient of xy^3:
In cl the coefficient of x^a y^b is the element at position a+1, b+1:
In ca the position is a+b+1 concatenated with a 1s & b 2s (1 & 2 indicate the first & second variables):
New in 1 | Last modified in 4.2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team