Post Reply 
how to know if prog was started from home or cas ?
03-06-2018, 02:55 AM
Post: #10
RE: how to know if prog was started from home or cas ?
(03-05-2018 05:54 AM)toshk Wrote:  #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

Oooh! That's dangerous with a system that is still evolving. When the bug is fixed, your program won't work anymore. Now in the case of the 50g or 35s, it would be safe to use a known bug since they're frozen in time and existing bugs will never be fixed.

Tom L
Cui bono?
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 ? - toml_12953 - 03-06-2018 02:55 AM



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