| Author |
Comment/Response |
Peter Pein
|
09/25/09 5:48pm
oops I forgot sth.:
When you are happy with the approximate solutions, NSolve is much faster than Solve:
In[4]:= appr=NSolve[x^3 + x^2 - 8*x + 1 == 0, x]
Out[4]= {{x -> -3.422698602651092},
{x -> 0.1272828790601753},
{x -> 2.2954157235909167}}
but keep in mind that these are not solutions ("sol" is the exact solution from my last posting):
In[6]:= FullSimplify[x^3 + x^2 - 8*x + 1 /. {sol, appr}]
Out[6]= {{0, 0, 0},
{3.552713678800501*^-15,
6.591949208711867*^-17,
-3.552713678800501*^-15}}
Peter
URL: , |
|