Post Reply 
How do you assign a global var in a CAS function?
11-07-2017, 07:10 AM
Post: #8
RE: How do you assign a global var in a CAS function?
You can assign variables in a local statement, but you must take care of priorities, for example
Code:
local a:=1,c:=3;
will assign a to 1,3 like
Code:
local a:=(1,c:=3);
unlike
Code:
local (a:=1),(c:=3);
That's why it is recommended to assign local variables outside of the local declaration.
In a CAS program, non declared variables are global, if they already exist in Home (i.e. you made an EXPORT before) then they are HOME variables, otherwise they are global CAS variables.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How do you assign a global var in a CAS function? - parisse - 11-07-2017 07:10 AM



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