Post Reply 
Why x:=CAS("x") = 0 ?
03-27-2018, 02:24 PM (This post was last modified: 03-27-2018 02:26 PM by Han.)
Post: #2
RE: Why x:=CAS("x") = 0 ?
When using CAS(), any variable references will first be resolved within the user's existing CAS environment. Then, variables are resolved using the local variables from the routine that called CAS(). At that instance, the local variable x has a default value of 0. You can test this by separating the declaration from the assignment.

When you use CAS(CAS()) the inner CAS() commands will try to use the outer CAS() command's local variables (and there are none).

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


Messages In This Thread
Why x:=CAS("x") = 0 ? - Carlos295pz - 03-27-2018, 12:52 PM
RE: Why x:=CAS("x") = 0 ? - Han - 03-27-2018 02:24 PM
RE: Why x:=CAS("x") = 0 ? - Carlos295pz - 03-28-2018, 02:47 AM
RE: Why x:=CAS("x") = 0 ? - Carlos295pz - 03-28-2018, 03:21 AM
RE: Why x:=CAS("x") = 0 ? - Carlos295pz - 03-29-2018, 11:14 AM



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