$MaxRootDegree
Rootオブジェクトで許容される多項式の最大次数を指定する.
詳細
- $MaxRootDegreeのデフォルトの設定値は一般に1000である.
例題
すべて開く すべて閉じる例 (1)
Rootオブジェクトを高次数の最小多項式で評価すると時間がかかることがある:
Root[# ^ 1000 - 123# ^ 777 + 211# ^ 356 - 127# ^ 123 + 888# ^ 11 - 2&, 1]//Timing結果は最小多項式が簡約不可能と証明されている有効な代数的数である:
NumericQ[%[[2]]]Rootは$MaxRootDegreeより次数の高い多項式を因数分解しようとはしない:
$MaxRootDegreeRoot[# ^ 1001 - 123# ^ 777 + 211# ^ 356 - 127# ^ 123 + 888# ^ 11 - 2&, 1]//TimingNumericQ[%[[2]]]スコープ (2)
2つのRootオブジェクトの和の次数は両者の次数の積と同じ高さのことがある:
RootReduce[Root[# ^ 10 - 9# + 7&, 10] + Root[# ^ 11 + 3# - 5&, 2]]以下のようにすると,Wolfram言語は次数が100より高いRootオブジェクトを作らなくなる:
$MaxRootDegree = 100既成のRootオブジェクトはキャッシュされている.以下のようにするとキャッシュされた結果が消去される:
ClearSystemCache[]RootReduceは次数110のRootオブジェクトが作れなくなった:
RootReduce[Root[# ^ 10 - 9# + 7&, 10] + Root[# ^ 11 + 3# - 5&, 2]]以下で$MaxRootDegreeをデフォルト値にリセットする:
$MaxRootDegree = 1000;デフォルトで,Wolfram言語は次数が1000を超えるRootオブジェクトは使わない:
Root[# ^ 1001 - 2# + 3&, 1]$MaxRootDegreeの値を大きくすると,Wolfram言語が代数的数を作れるようになる:
$MaxRootDegree = 1001;r = Root[# ^ 1001 - 2# + 3&, 1]このRootオブジェクトは実数なので,その近似値を計算するのはかなり速い:
N[r, 20]関連項目
関連するガイド
履歴
1996 で導入 (3.0)
テキスト
Wolfram Research (1996), $MaxRootDegree, Wolfram言語関数, https://reference.wolfram.com/language/ref/$MaxRootDegree.html.
CMS
Wolfram Language. 1996. "$MaxRootDegree." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$MaxRootDegree.html.
APA
Wolfram Language. (1996). $MaxRootDegree. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$MaxRootDegree.html
BibTeX
@misc{reference.wolfram_2026_$maxrootdegree, author="Wolfram Research", title="{$MaxRootDegree}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/$MaxRootDegree.html}", note=[Accessed: 24-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_$maxrootdegree, organization={Wolfram Research}, title={$MaxRootDegree}, year={1996}, url={https://reference.wolfram.com/language/ref/$MaxRootDegree.html}, note=[Accessed: 24-August-2026]}