Distribute[f[x1,x2,…]]
xiに現れるPlusに対し f を分配する.
Distribute[expr,g]
g に対し分配する.
Distribute[expr,g,f]
式 expr の頭部が f であるものに限って分配を実行する.
Distribute
Distribute[f[x1,x2,…]]
xiに現れるPlusに対し f を分配する.
Distribute[expr,g]
g に対し分配する.
Distribute[expr,g,f]
式 expr の頭部が f であるものに限って分配を実行する.
詳細
- Distributeは,実質的に演算子 f および g の分配則を実装する.
- Distributeは,分配の完全な結果を一気に構成する.一方,Expandは,各段階で簡約化を行いながら反復して結果を組み上げていく.
- Distribute[expr,g,f,gp,fp]は,分配の結果として g と f の代りにそれぞれ gp と fp を与える. »
例題
すべて開く すべて閉じる例 (3)
Distribute[(a + b).(x + y + z)]fをPlusに分配する:
Distribute[f[a + b, c + d + e]]Distribute[f[g[a, b], g[c, d, e]], g]スコープ (4)
デフォルトで,Plusに分配する:
Distribute[(a + b + c)(u + v), Plus]Distribute[(a + b + c)(u + v)]Distribute[(a + b + c)(u + v), Plus, Times]Distribute[(a + b + c) ^ (u + v), Plus, Times]Distribute[And[Or[a, b, c], Or[u, v]], Or, And]Distribute[Or[And[a, b, c], And[u, v]], And, Or]Distribute[And[Xor[a, b, c], Xor[u, v]], Xor, And]Distribute[(a⊕b⊕c)⊗(u⊕v), CirclePlus, CircleTimes]一般化と拡張 (1)
アプリケーション (5)
Distribute[(m1 + m2).(m3 + m4)]Distribute[(v1 + v2)⨯(v3 + v4)]Distribute[(a + b)⊕(x + y + z)⊕(s + t)]Distribute[{{a, b}, {x, y, z}, {s, t}}, List]Distribute[{{}, {#}}& /@ {a, b, c}, List, List, List, Join]Distribute[Factor[x ^ 6 - 1], Plus, Times, List, Times]Plus@@%特性と関係 (3)
純粋な積については,DistributeはExpandと同じ結果を返す:
Factor[x ^ 10 - 1]Distribute[%]PowerExpandはTimesに分配することに相当する:
PowerExpand[(x y z) ^ n]Distribute[(x y z) ^ n, Times]Outerも,すべての要素の同じ組合せを作るが,その構造はネスト構造である:
Outer[List, {a, b, c}, {x, y}]Distribute[{{a, b, c}, {x, y}}, List]考えられる問題 (2)
Distributeのこの使い方は期待される結果を与えない:
Distribute[(a + b) * (a + b)](a + b) * (a + b)Distribute[%]Distributeが引数を見る前に引数が評価されないようにする:
Distribute[Unevaluated[(a + b) * (a + b)]]Distributeは数学的に正しい結果を返すとは限らない:
Distribute[u ^ (a + b)]変換を回避するために,Timesの出現へのアプリケーションを制限する:
Distribute[u ^ (a + b), Plus, Times]テクニカルノート
-
▪
- 構造操作
関連するガイド
-
▪
- 式への構造操作 ▪
- 関数の合成と演算子形式 ▪
- 式
履歴
1988 で導入 (1.0)
テキスト
Wolfram Research (1988), Distribute, Wolfram言語関数, https://reference.wolfram.com/language/ref/Distribute.html.
CMS
Wolfram Language. 1988. "Distribute." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Distribute.html.
APA
Wolfram Language. (1988). Distribute. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Distribute.html
BibTeX
@misc{reference.wolfram_2026_distribute, author="Wolfram Research", title="{Distribute}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Distribute.html}", note=[Accessed: 11-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_distribute, organization={Wolfram Research}, title={Distribute}, year={1988}, url={https://reference.wolfram.com/language/ref/Distribute.html}, note=[Accessed: 11-September-2026]}