Post Reply 
Existing CAS commands --> Prime discussion
11-09-2019, 03:28 PM
Post: #74
RE: Existing CAS commands --> Prime discussion
Testing the four "crement" commands in programming:

Code:
EXPORT TEST7788()
BEGIN
// CREMENT TEST
// EWS 2019-11-07
LOCAL a:=100;
LOCAL b:=5;
PRINT();

CAS.increment(a,b);
PRINT("+  "+a);

CAS.decrement(a,b);
PRINT("-  "+a);

CAS.mulcrement(a,b);
PRINT("*  "+a);

CAS.divcrement(a,b);
PRINT("/  "+a);

PRINT("-------");

a:=CAS.increment(a,b);
PRINT("+  "+a);

a:=CAS.decrement(a,b);
PRINT("-  "+a);

a:=CAS.mulcrement(a,b);
PRINT("*  "+a);

a:=CAS.divcrement(a,b);
PRINT("/  "+a);

END;

The results may show why these four commands are not in the catalog:
Code:

+  100
-  100
*  100
/  100
-------
+  increment(100,5)
-  decrement(increment(100,5),5)
*  mulcrement(decrement(increment(100,5),5),5)
/  divcrement(mulcrement(decrement(increment(100,5),5),5),5)


Attached File(s) Thumbnail(s)
   
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Existing CAS commands --> Prime discussion - Eddie W. Shore - 11-09-2019 03:28 PM



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