Post Reply 
[Bug]-Missing root in solving equation
03-29-2019, 04:17 PM
Post: #18
RE: [Bug]-Missing root in solving equation
What I generally do (if the equation is particularly "unpleasant") is plot the func and try to estimate a zero using two initial values, most of the time algorithms converge to the nearest solution.
As an indication, whether the equation is complex and has only one unknown, better use nsolve instead of solve.
Nsolve looks for just ONE solution numerically and in a number of cases a solution can't be found.
Nsolve takes several numerical algorithms (Newton, bisection, fixed-point, and so on), in many cases they converge smartly, in others they fail to converge.
It's a big help to provide an initial guess, a good value can "speed up" calculations and help the algorithm to converge to a solution.
A further point is that different (numerical) algorithms get different error margins; if a result is displayed using 14 digits, that does not mean we get a precision of the magnitude of 10^(-14).
I guess the value should be around 10^(-5) or 10^(-6) from the exact result.
Best,

Aries Wink
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [Bug]-Missing root in solving equation - Aries - 03-29-2019 04:17 PM



User(s) browsing this thread: 1 Guest(s)