Collect
范例
打开所有单元 关闭所有单元基本范例 (4)
Collect[b x ^ 2 + 5x + 7x ^ 2 + 9a x + 2, x]Collect[a x + b y + c x + d y, x]Collect[a x + b y + c x + d y, y]Collect[(1 + a + x) ^ 3, x]Collect[(1 + a + x) ^ 3, x, Simplify]范围 (6)
基本用法 (3)
选项 (1)
应用 (1)
当多项式有许多变量时,可被改写为许多不同的形式. 下面是三个变量的多项式:
Expand[(y + 2x + 3x y + 4x z + 5y z) ^ 3]Collect 重组多项式,
为主变量:
Collect[%, x]Collect[%, y]Collect[%, {x, y}]Collect[%, {y, x}]属性和关系 (3)
f = Expand[(x + y + 1) ^ 5];Collect[f, x]Expand[%] === fCollect[(1 + x + y + z) ^ 2, {x, y}, Simplify]Collect[(1 + x + y + z) ^ 2, {y, x}, Simplify]用 NonCommutativeCollect 合并非交换多项式中的项:
NonCommutativeCollect[x**x**y**x + 2x**x**z**x + 3x**y**x**x + 4x**z**x**x, x]技术笔记
-
▪
- 以不同形式表示表达式 ▪
- 多项式的结构运算
历史
1988年引入 (1.0) | 在以下年份被更新:1996 (3.0) ▪ 2007 (6.0)
文本
Wolfram Research (1988),Collect,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Collect.html (更新于 2007 年).
CMS
Wolfram 语言. 1988. "Collect." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2007. https://reference.wolfram.com/language/ref/Collect.html.
APA
Wolfram 语言. (1988). Collect. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Collect.html 年
BibTeX
@misc{reference.wolfram_2026_collect, author="Wolfram Research", title="{Collect}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Collect.html}", note=[Accessed: 14-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_collect, organization={Wolfram Research}, title={Collect}, year={2007}, url={https://reference.wolfram.com/language/ref/Collect.html}, note=[Accessed: 14-September-2026]}