Post Reply 
nSolve
02-01-2014, 09:29 PM
Post: #4
RE: nSolve
It appears I was a bit presumptuous -- I thought you were trying to use this command from the Home view (this is where single or double quotes would be necessary).

From home view, I typed: nSolve("cos(x)=x","x=1.3") and it works fine.
From CAS view, I typed: nSolve(cos(x)=x,x=1.3) and this work as well.

You are saying that in CAS view, typing nSolve(cos(x)=x,x=1.3) produces an error? Perhaps you have x already defined? To test, type x all by itself (lowercase) and see if it returns a real number (as opposed to just the variable itself). If so, then use purge(x) to delete the CAS variable. Most commands will balk at the use of a variable that has also been defined.

To add more complexity to the situation, storing a value into x in the Home view creates an x variable distinct from one created in the CAS view!

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
nSolve - Dominik Holenstein - 02-01-2014, 08:30 PM
RE: nSolve - Han - 02-01-2014, 08:46 PM
RE: nSolve - Dominik Holenstein - 02-01-2014, 09:03 PM
RE: nSolve - Han - 02-01-2014 09:29 PM
RE: nSolve - Dominik Holenstein - 02-01-2014, 09:49 PM
RE: nSolve - Han - 02-01-2014, 11:51 PM



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