Post Reply 
how to know if prog was started from home or cas ?
03-05-2018, 05:54 AM (This post was last modified: 03-05-2018 07:18 AM by toshk.)
Post: #6
RE: how to know if prog was started from home or cas ?
i think the easy way is to pick the different behaviors in results of a common function under CAS and Home;
eg;
Home;
TYPE(coeff("y","y"))==4;
CAS
TYPE(coeff("y","y"))==6;
and set Flag accordingly;

#cas
ccc():=
BEGIN
BB:=coeff(x/7); // under HOME [0.142857142857,0] and CAS [1/7,0] and denominator of the first element will determine where you are
BC:=CAS.coeff("x/7","'x'"); //exploit a bug of the function when numerator is available in the function "x/7" it does not executes at all. But it should evaluate under Home and fails under CAS
BD:=TYPE(BB);
BE:=denom(BB(1));
END;
#end
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: how to know if prog was started from home or cas ? - toshk - 03-05-2018 05:54 AM



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