Post Reply 
nSolve
02-01-2014, 09:49 PM (This post was last modified: 02-01-2014 09:51 PM by Dominik Holenstein.)
Post: #5
RE: nSolve
(02-01-2014 09:29 PM)Han Wrote:  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!

Han,

Direct hit!
Yes, I have x already defined. After using purge(x) the expression worked as printed in the user guide without single quotes.

I get a different result egarding storing a value into x in the Home view.

My steps:

1) Delete all variables x (either CAS Vars or User Variables)
2) Switch to Home view
3) Set the entry format to Algebraic
3) 8 [Sto>] x
4) Switch to CAS view
5) x [Enter]
6) 8.
7) Still in CAS view:
8) 10 [Sto>] x
9) x [Enter]
10) 10.
11) Switch to Home View
12) x [Enter]
13) 10

So I can change x either in CAS or in the Home view an it seems there is only one x variable in the System.

Check:
[Shift] [Suitcase] -> User Variables -> there is a user variable x with the value 10 and no variable x under CAS Vars.

Apart from this complexity: Many thanks for your help, it is much appreciated.

Dominik
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)