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). |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Difference between fsolve and nSolve? [CAS] - mandresve - 04-05-2015, 08:26 PM
RE: Difference between fsolve and nSolve? [CAS] - John Colvin - 04-06-2015, 07:25 PM
RE: Difference between fsolve and nSolve? [CAS] - mandresve - 04-07-2015, 03:07 AM
RE: Difference between fsolve and nSolve? [CAS] - parisse - 04-07-2015, 06:01 AM
RE: Difference between fsolve and nSolve? [CAS] - Angus - 04-07-2015, 08:20 AM
RE: Difference between fsolve and nSolve? [CAS] - parisse - 04-07-2015 10:49 AM
RE: Difference between fsolve and nSolve? [CAS] - Angus - 04-07-2015, 11:22 AM
RE: Difference between fsolve and nSolve? [CAS] - parisse - 04-07-2015, 01:02 PM
RE: Difference between fsolve and nSolve? [CAS] - mandresve - 04-08-2015, 02:19 AM
RE: Difference between fsolve and nSolve? [CAS] - leprechaun - 04-08-2015, 10:57 AM
|
User(s) browsing this thread: 3 Guest(s)