Post Reply 
Difference between fsolve and nSolve? [CAS]
04-07-2015, 10:49 AM
Post: #6
RE: Difference between fsolve and nSolve? [CAS]
By default fsolve without guess does the change of variable x=tan(t), then bisection on -1.57..1.57. If the solution is outside this interval it can not be reached, therefore nothing is returned.
nSolve calls Newton with default initial guess to 0, in this case it seems to be convergent.
It is important to understand that one should always give an initial guess or interval to a numeric solver. An algorithm can not always guess for you, the user is in the best position to provide an initial guess (with the help of a plot or because you know the interesting range of values of your parameters).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Difference between fsolve and nSolve? [CAS] - parisse - 04-07-2015 10:49 AM



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