NSolve
Usage
• NSolve[lhs rhs, var] 给出一个多项式方程根的数值近似.
Notes
• NSolve[eqn, var, n]给出具有n个数位精度的结果. • NSolve[eqn, var]给出与N[Solve[eqn, var]]一样的最后结果,只是数值精度不同.
Further Examples
Here is a degree-10 polynomial.
In[1]:=
|
Out[1]=
|
Although Solve will find all of the solutions in symbolic form, NSolve is the function to use if you ultimately want numerical solutions.
In[2]:=
|
Out[2]=
|
|