04-24-2014, 01:38 AM
04-24-2014, 01:40 AM
Sure, if you initialize it to some value you can.
This creates a CAS variable named MyVar with an initial value of 0.
Code:
LOCAL mystring:="MyVar";
mystring:=mystring+":=0"; // mystring = "MyVar:=0"
CAS(mystring);
This creates a CAS variable named MyVar with an initial value of 0.
04-24-2014, 02:06 AM
Thank you very much
))))
))))
04-30-2014, 09:57 AM
An other way for this (in a CAS-Program) is
#("ABC_"):=4711;
This creates the global CAS-Variable ABC_ with value 4711. Of course this is also possible with a variable which contains a string:
#CDE_:=4712;
creates the global CAS-Variable ABC_ with value 4712, if the variable CDE_ has the value "ABC_".
OldHPUser
#("ABC_"):=4711;
This creates the global CAS-Variable ABC_ with value 4711. Of course this is also possible with a variable which contains a string:
#CDE_:=4712;
creates the global CAS-Variable ABC_ with value 4712, if the variable CDE_ has the value "ABC_".
OldHPUser