Reference Guide

3-156 Full Command and Function Reference
Command:
NEXTPRIME(145)
Result:
149
See also: ISPRIME?, PREVPRIME
NIP
Type: RPL command
Description: Drops the (n–1)
th
argument, where n is the number of arguments or items on the stack. (that is,
the object on level 2 of the stack). This is equivalent to executing SWAP followed by DROP in
RPN mode.
Access:
STACK
LL
NIP
( °is the left-shift of the Nkey).
I
STACK
LL
NIP
Input/Output:
Level 2 Level 1 Level 1
obj
1
obj
2
obj
2
Example:
333 222 1 NIP
returns
333 1
See also: DUP, DUPDUP, DUPN, DUP2
NOT
Type: Function
Description: NOT Command: Returns the one’s complement or logical inverse of the argument.
When the argument is a binary integer or string, NOT complements each bit in the argument to
produce the result.
A binary integer is treated as a sequence of bits as long as the current wordsize.
A string is treated as a sequence of bits, using 8 bits per character (that is, using the binary
version of the character code).
When the argument is a real number or symbolic, NOT does a true/false test. The result is 1
(true) if the argument is zero; it is 0 (false) if the argument is nonzero. This test is usually done on
a test result (T/F).
If the argument is an algebraic object, then the result is an algebraic of the form NOT symb.
Execute →NUM (or set flag –3 before executing NOT) to produce a numeric result from the
algebraic result.
Access:
TEST
L
NOT
( °is the left-shift of the Nkey).
…ãL
LOGIC NOT
(ã is the right-shift of the 3key).
Flags: Numerical Results (–3), Binary Integer Wordsize (–5 through –10)
Input/Output:
Level 1/Argument 1 Level 1/Item 1
#n
1
#n
2
T/F
0/1
“string
1
“string
2
'symb'
'NOT symb'
See also: AND, OR, XOR
NOVAL
Type: Command
Description: INFORM Place Holder/Result Command: Place holder for reset and initial values in user-defined
dialog boxes. NOVAL is returned when a field is empty.