HP Forums
nop operation? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: nop operation? (/thread-9372.html)



nop operation? - webmasterpdx - 10-26-2017 02:30 PM

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


RE: nop operation? - parisse - 10-26-2017 02:54 PM

nop does nothing (means no operation)


RE: nop operation? - webmasterpdx - 10-26-2017 10:42 PM

So, nop(1) means 1?


RE: nop operation? - parisse - 10-27-2017 06:04 AM

More precisely, nop(1) evaluates to 1.


RE: nop operation? - compsystems - 10-28-2017 10:52 AM

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-8577.html?highlight=nop