NRoots

NRoots[lhs==rhs,var]

yields a disjunction of equations which represent numerical approximations to the roots of a polynomial equation.

Details and Options

  • NRoots gives several identical equations when roots with multiplicity greater than one occur.
  • NRoots has the following options:
  • MaxIterationsAutomaticmaximum number of iterations to use
    MethodAutomaticmethod to use
    PrecisionGoalAutomaticthe precision sought
    StepMonitorNoneexpression to evaluate at each step
  • Possible settings for the Method option include: "Aberth", "CompanionMatrix", and "JenkinsTraub".

Examples

Basic Examples  (1)

Numerically find the roots of a polynomial:

Change the result to rules:

Test the roots:

Wolfram Research (1988), NRoots, Wolfram Language function, https://reference.wolfram.com/language/ref/NRoots.html (updated 2007).

Text

Wolfram Research (1988), NRoots, Wolfram Language function, https://reference.wolfram.com/language/ref/NRoots.html (updated 2007).

CMS

Wolfram Language. 1988. "NRoots." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/NRoots.html.

APA

Wolfram Language. (1988). NRoots. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NRoots.html

BibTeX

@misc{reference.wolfram_2023_nroots, author="Wolfram Research", title="{NRoots}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/NRoots.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_nroots, organization={Wolfram Research}, title={NRoots}, year={2007}, url={https://reference.wolfram.com/language/ref/NRoots.html}, note=[Accessed: 19-March-2024 ]}