CoefficientList
Usage
• CoefficientList[poly, var]给出了poly中var的从零开始的幂的系数列表。
• CoefficientList[poly,  , , ... ] 给出了  的系数数组。
Notes
• 由 CoefficientList返回的数组的维数由 Exponent[poly, ]的值确定。 • 不包含一个特殊变量的正整数幂的项被包括在这个变量列表的第一个元素中。 • CoefficientList 总返回一个矩阵列。不在poly中出现的幂的组合在阵列为零。 • 无论expr是否明确以扩展形式给出,CoefficientList都是有效的。 • 参见Mathematica全书: 节 3.3.2.
Further Examples
This gives the coefficients in the polynomial first in the variable x.
In[1]:=
|
Out[1]=
|
On the other hand this gives the coefficients in the polynomial first in the variable y.
In[2]:=
|
Out[2]=
|
We can also get the list of coefficients over the integers modulo 3 and 4.
In[3]:=
|
Out[3]=
|
CoefficientList can handle powers of variables in the second argument as long as the first argument is a polynomial in those powers.
In[4]:=
|
Out[4]=
|
The coefficients of a polynomial in two variables are given as an array.
In[5]:=
|
Out[5]=
|
Here are the coefficients of some polynomials in three variables.
In[6]:=
|
Out[6]//MatrixForm=
|
|