MaxRoots
例題
すべて開く すべて閉じる例 (3)
NSolve[x ^ 100 - x == 1, x, MaxRoots -> 3]デフォルト設定のAutomaticでは,100個すべての根が返される:
NSolve[x ^ 100 - x == 1, x]//LengthNSolve[Sin[x] == x + 1, x, MaxRoots -> 3]デフォルト設定のAutomaticでは,16個の根が返される:
NSolve[Sin[x] == x + 1, x]//LengthSolve[Sin[Cos[x]] == Sin[x] + Cos[x], x, MaxRoots -> 5]スコープ (6)
NSolve[x ^ 3 + y ^ 3 == x y - 1 && x ^ 7 - y ^ 7 == x + y + 3, {x, y}, MaxRoots -> 2]デフォルト設定のAutomaticでは,21個すべての根が返される:
NSolve[x ^ 3 + y ^ 3 == x y - 1 && x ^ 7 - y ^ 7 == x + y + 3, {x, y}]//LengthNSolve[x == Sin[x y] - 1 && y ^ 2 == Cos[x - y] + 2, {x, y}, MaxRoots -> 5]デフォルト設定のAutomaticでは,16個の根が返される:
NSolve[x == Sin[x y] - 1 && y ^ 2 == Cos[x - y] + 2, {x, y}]//LengthNSolve[x == Sin[x y] - 1 && y ^ 2 == Cos[x - y] + 2, {x, y}, MaxRoots -> 100]//LengthSolve[x ^ 1234567 + 9x ^ 2 + 7x - 1 == 0, x, MaxRoots -> 5]SolveValues[Sin[FresnelS[x] + BesselJ[3, x ^ 3 - 2]] == 2 ^ Cos[x] - 5, x, MaxRoots -> 3]SolveValues[x ^ 10000 == y ^ 2 + 3y + 2 && y ^ 10000 == z ^ 2 + 3z + 2 && z ^ 10000 == x ^ 2 + 3x + 2, {x, y, z}, MaxRoots -> 3]Solve[Sin[x + y] == x y + 1 && Cos[x - y] == AiryAi[x y] / 2, {x, y}, MaxRoots -> 5]考えられる問題 (1)
解が記号パラメータに依存するときは,MaxRoots設定は無視される:
NSolve[x ^ 2 == a x + 1 && Abs[x] < 2, x, Reals, MaxRoots -> 1]テキスト
Wolfram Research (2024), MaxRoots, Wolfram言語関数, https://reference.wolfram.com/language/ref/MaxRoots.html.
CMS
Wolfram Language. 2024. "MaxRoots." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MaxRoots.html.
APA
Wolfram Language. (2024). MaxRoots. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MaxRoots.html
BibTeX
@misc{reference.wolfram_2026_maxroots, author="Wolfram Research", title="{MaxRoots}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/MaxRoots.html}", note=[Accessed: 03-December-2026]}
BibLaTeX
@online{reference.wolfram_2026_maxroots, organization={Wolfram Research}, title={MaxRoots}, year={2024}, url={https://reference.wolfram.com/language/ref/MaxRoots.html}, note=[Accessed: 03-December-2026]}