Post Reply 
nop operation?
10-26-2017, 02:30 PM
Post: #1
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
Find all posts by this user
Quote this message in a reply
10-26-2017, 02:54 PM
Post: #2
RE: nop operation?
nop does nothing (means no operation)
Find all posts by this user
Quote this message in a reply
10-26-2017, 10:42 PM
Post: #3
RE: nop operation?
So, nop(1) means 1?
Find all posts by this user
Quote this message in a reply
10-27-2017, 06:04 AM
Post: #4
RE: nop operation?
More precisely, nop(1) evaluates to 1.
Find all posts by this user
Quote this message in a reply
10-28-2017, 10:52 AM
Post: #5
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]

http://www.hpmuseum.org/forum/thread-857...hlight=nop
Find all posts by this user
Quote this message in a reply
Post Reply 




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