The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Difference between fsolve and nSolve? [CAS]
04-05-2015, 08:26 PM (This post was last modified: 04-07-2015 03:09 AM by mandresve.)
Post: #1
Difference between fsolve and nSolve? [CAS]
Hi to everyone...

Recently I had a conflict understanding the fsolve and nSolve functions in my Prime.

I wonder what is the difference between them? in the catalog's description, the explanation for both functions appears exactly the same. When I solve a function for x (or whatever numeric constant/var), sometimes it works better with nSolve than fsolve, of course, entering the required parameters for each command to its solution.

I will be very grateful if someone give me examples of cases in which I can or cannot use fsolve and in which types of equations is best to use nSolve.

Thank you very much.

Edit:
If I specify the range of solution that I hope to get (within the fsolve command) I finally get the same response that gives me nSolve, for example using the range 0 to infinity. What is the idea of having two commands? Isn't supposed that if I miss optional fsolve arguments the command must evaluate the expression in any interval? (obviously the guess/interval and the solution method are optional within fsolve). According to my understanding, XCAS documentation shows that fsolve and nSolve commands do exactly the same.


Attached File(s) Thumbnail(s)
       

Success is the ability to go from one failure to the next without any loss of enthusiasm.
View PNG/JPG in your Prime
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Difference between fsolve and nSolve? [CAS] - mandresve - 04-05-2015 08:26 PM



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