This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Numerical Computation / Equation Solving  /

  • NSolve[ lhs == rhs , var ] gives a list of numerical approximations to the roots of a polynomial equation.
  • NSolve[ eqn , var , n ] gives results to n-digit precision.
  • NSolve[ eqn , var ] gives the same final result as N[Solve[ eqn , var ]], apart from issues of numerical precision.
  • See the Mathematica book: Section 1.6.3, Section 3.4.2, Section 3.9.1, Section 3.9.5Section 3.9.5.
  • See also Implementation NotesA.9.44.23MainBookLinkOldButtonDataA.9.44.23.
  • See also: Solve, FindRoot, NDSolve.
  • Related package: NumberTheory`Recognize`.

    Further Examples

    Here is a degree-10 polynomial.



    Although Solve will find all of the solutions in symbolic form, NSolve is the function to use if you ultimately want numerical solutions.