CoefficientRules[poly,{x1,x2,…}]
poly 中の xiについての単項式の指数ベクトルと係数のリスト{{e11,e12,…}c1,{e21,…}c2,…}を返す.
CoefficientRules[poly,{x1,x2,…},order]
order で指定された単項式の順序付けで結果を返す.
CoefficientRules
CoefficientRules[poly,{x1,x2,…}]
poly 中の xiについての単項式の指数ベクトルと係数のリスト{{e11,e12,…}c1,{e21,…}c2,…}を返す.
CoefficientRules[poly,{x1,x2,…},order]
order で指定された単項式の順序付けで結果を返す.
詳細とオプション
- CoefficientRulesは poly が明示的に展開された形で与えられたかどうかにかかわらず働く.
- CoefficientRules[poly]はCoefficientRules[poly,Variables[poly]]と等価である.
- order の可能な設定値はMonomialListにおけるものと等しい.
- デフォルト順は"Lexicographic"である.
- CoefficientRules[poly,vars,Modulus ->m]は m を法とした係数を計算する.
- CoefficientRules[poly,All,order]はCoefficientRules[poly,Variables[poly],order]に等しい.
例題
すべて開く すべて閉じるスコープ (1)
オプション (1)
特性と関係 (2)
FromCoefficientRulesはもとの多項式を再構築する:
CoefficientRules[a x ^ 2 + b x y + c y ^ 2, {x, y}]FromCoefficientRules[%, {x, y}]MonomialListは別の表現を与える:
MonomialList[a x ^ 2 + b x y + c y ^ 2, {x, y}]二変数では"DegreeLexicographic"と"DegreeReverseLexicographic"は一致する:
poly = Sum[RandomInteger[{-10, 10}]x ^ RandomInteger[10]y ^ RandomInteger[10], {20}]CoefficientRules[poly, {x, y}, "DegreeLexicographic"] === CoefficientRules[poly, {x, y}, "DegreeReverseLexicographic"]考えられる問題 (1)
Variables[poly]に与えられたこのリストは常に保存される訳ではない:
Variables[y + x z]CoefficientRules[y + x z]FromCoefficientRules[%, {y, x, z}]おもしろい例題 (2)
MonomialOrderPlot[poly_, {x1_, x2_}, ord_ : "Lexicographic", o : OptionsPattern[]] :=
Graphics[{Blue, Arrow /@ Partition[CoefficientRules[poly, {x1, x2}, ord][[All, 1]], 2, 1]}, Sequence@@FilterRules[{o}, Options[Graphics]]]orders = {"Lexicographic", "DegreeLexicographic", "DegreeReverseLexicographic", "NegativeLexicographic", "NegativeDegreeLexicographic", "NegativeDegreeReverseLexicographic"};Table[MonomialOrderPlot[Sum[x ^ i y ^ j, {i, 0, 5}, {j, 0, 5}], {x, y}, o, PlotLabel -> Style[o, Small]], {o, orders}]MonomialOrderPlot3D[poly_, {x1_, x2_, x3_}, ord_ : "Lexicographic", o : OptionsPattern[]] :=
Graphics3D[{Arrowheads[.06], Arrow[Tube[#, .02]]& /@ Partition[CoefficientRules[poly, {x1, x2, x3}, ord][[All, 1]], 2, 1]}, Sequence@@FilterRules[{o}, Options[Graphics3D]]]orders = {"Lexicographic", "DegreeLexicographic", "DegreeReverseLexicographic", "NegativeLexicographic", "NegativeDegreeLexicographic", "NegativeDegreeReverseLexicographic"};Table[MonomialOrderPlot3D[Sum[x ^ i y ^ j z ^ k, {i, 0, 2}, {j, 0, 2}, {k, 0, 2}], {x, y, z}, o, PlotLabel -> Style[o, Small]], {o, orders}]テクニカルノート
-
▪
- 多項式の順序
関連するガイド
-
▪
- 多項式代数
テキスト
Wolfram Research (2008), CoefficientRules, Wolfram言語関数, https://reference.wolfram.com/language/ref/CoefficientRules.html.
CMS
Wolfram Language. 2008. "CoefficientRules." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CoefficientRules.html.
APA
Wolfram Language. (2008). CoefficientRules. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CoefficientRules.html
BibTeX
@misc{reference.wolfram_2026_coefficientrules, author="Wolfram Research", title="{CoefficientRules}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/CoefficientRules.html}", note=[Accessed: 12-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_coefficientrules, organization={Wolfram Research}, title={CoefficientRules}, year={2008}, url={https://reference.wolfram.com/language/ref/CoefficientRules.html}, note=[Accessed: 12-September-2026]}