NRoots

NRoots[lhs==rhs, var]
yields a disjunction of equations which represent numerical approximations to the roots of a polynomial equation.

Details and OptionsDetails 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: , , and .

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

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
New to Mathematica? Find your learning path »
Have a question? Ask support »