nop operation?
10-26-2017, 02:30 PM
Post: #1
 webmasterpdx Senior Member Posts: 541 Joined: Sep 2015
nop operation?
I was curious how CAS handles parsing when spaces are put in composite operators.
I typed:
typed LHS of stack RHS of stack
a:=3 3
a+=1 increment(a) 4
a+ =1 a+nop(1) 5

What is the nop operation? I tried the help command and it isn't documented.

Thanks
-Donald
10-26-2017, 02:54 PM
Post: #2
 parisse Senior Member Posts: 1,243 Joined: Dec 2013
RE: nop operation?
nop does nothing (means no operation)
10-26-2017, 10:42 PM
Post: #3
 webmasterpdx Senior Member Posts: 541 Joined: Sep 2015
RE: nop operation?
So, nop(1) means 1?
10-27-2017, 06:04 AM
Post: #4
 parisse Senior Member Posts: 1,243 Joined: Dec 2013
RE: nop operation?
More precisely, nop(1) evaluates to 1.
10-28-2017, 10:52 AM
Post: #5
 compsystems Senior Member Posts: 1,339 Joined: Dec 2013
RE: nop operation?
Xcas
[subst((abs(2*x-1)) = 1,'abs','nop'), subst((abs(2*x-1)) = 1,'abs','neg')]
returns
[(2*x-1) = 1, (-2*x+1) = 1]