|
SOLUTIONS
|
MATHEMATICA 内置符号
CoefficientArrays
CoefficientArrays[polys, vars]
得到多项式 polys 的变量 vars 的系数数组.
更多信息更多信息
- CoefficientArrays 给出包括对象 SparseArray 的列表,该对象可以用 Normal 转换成普通数组.
- 若 CoefficientArrays[polys, vars] 给出
,则 polys 可重构为
. » - polys 中形如
的任一元素对应于多项式
. » - CoefficientArrays[polys, {form1, form2, ...}] 取 polys 中与
匹配的所有表达式作为变量. - CoefficientArrays[polys] 等价于 CoefficientArrays[polys, Variables[polys]].
- CoefficientArrays[polys, vars] 的列表长度比 polys 的总次数高1.
是秩为
的稀疏数组. - 第一个元素
与 polys 列表的长度相同. - 若 polys 是一个多项式而不是列表,则
也不是列表. - 对于线性方程,Thread[polys==0] 的解由 LinearSolve[m1, -m0] 给出.
- 对于非线性方程,
不唯一. 在默认情况下,CoefficientArrays 只对变量与 vars 的次序相同的单项式赋予非零系数. - CoefficientArrays[polys, vars, "Symmetric"->True] 使得所有的
在其指针中对称. 结果一般较不稀疏.
版本 5 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
