This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

NRoots

NRoots[lhsEqualrhs, var]
yields a disjunction of equations which represent numerical approximations to the roots of a polynomial equation.
  • 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".
Numerically find the roots of a polynomial:
Change the result to rules:
Test the roots:
Numerically find the roots of a polynomial:
In[1]:=
Click for copyable input
Out[1]=
Change the result to rules:
In[2]:=
Click for copyable input
Out[2]=
Test the roots:
In[3]:=
Click for copyable input
Out[3]=
New in 1 | Last modified in 6