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 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
how to know if prog was started from home or cas ? - primer - 03-04-2018, 10:11 AM
RE: how to know if prog was started from home or cas ? - Carlos295pz - 03-04-2018, 10:49 AM
RE: how to know if prog was started from home or cas ? - Han - 03-05-2018, 12:22 AM
RE: how to know if prog was started from home or cas ? - Carlos295pz - 03-05-2018, 12:58 AM
RE: how to know if prog was started from home or cas ? - cyrille de brébisson - 03-05-2018, 05:47 AM
RE: how to know if prog was started from home or cas ? - toshk - 03-05-2018 05:54 AM
RE: how to know if prog was started from home or cas ? - primer - 03-05-2018, 04:56 PM
RE: how to know if prog was started from home or cas ? - toml_12953 - 03-06-2018, 02:55 AM
RE: how to know if prog was started from home or cas ? - StephenG1CMZ - 03-05-2018, 05:12 PM
RE: how to know if prog was started from home or cas ? - toshk - 03-05-2018, 07:37 PM
|
User(s) browsing this thread: 1 Guest(s)