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)
高度な用法 (3)
D[f[Sqrt[x ^ 2 + 1]], {x, 3}]Collect[%, Derivative[_][f][_], Together]Collect[(1 + a + x) ^ 4, x, Factor]Collect[(4 + 2a + x) ^ 2, x, Modulus -> 3]オプション (1)
アプリケーション (1)
多項式にたくさんの変数がある場合は,いろいろな形にすることができる.次は3変数の多項式である:
Expand[(y + 2x + 3x y + 4x z + 5y z) ^ 3]Collectは
が支配的な変数となるように多項式を再構成する:
Collect[%, x]
がパラメータとして指定されているなら,項は
を主変数として構成される:
Collect[%, y]2つの変数が指定されている場合,関数はまず
についてまとめられ,次に
についてまとめられる:
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 Language. 1988. "Collect." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/Collect.html.
APA
Wolfram Language. (1988). Collect. Wolfram Language & System Documentation Center. Retrieved from 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-July-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-July-2026]}