Command: | NEXTPRIME(145) |
|
|
| |
Result: | 149 |
|
|
|
|
See also: | ISPRIME?, PREVPRIME |
|
|
| |
|
|
|
|
|
|
NIP | RPL command |
|
|
| |
Type: |
|
|
| ||
Description: | Drops the | ||||
| the object on level 2 of the stack). This is equivalent to executing SWAP followed by DROP in | ||||
| RPN mode. |
|
|
| |
Access: | !°STACK LLNIP | ( °is the | |||
| ISTACK LLNIP |
|
|
| |
Input/Output: |
|
|
|
|
|
|
|
|
|
|
|
|
| Level 2 | Level 1 |
| Level 1 |
|
|
|
|
|
|
|
| obj1 | obj2 | → | obj2 |
| 333 222 |
|
|
| |
Example: | 1 NIP returns 333 1 |
|
| ||
See also: | DUP, DUPDUP, DUPN, DUP2 |
|
|
| |
|
|
|
|
|
|
NOT | Function |
|
|
| |
Type: |
|
|
|
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
Access: !°TEST LNOT | ( °is the |
…ÃL LOGIC NOT | (Ã is the |
Flags: Numerical Results
Input/Output:
Level 1/Argument 1 |
| Level 1/Item 1 |
|
|
|
#n1 | → | #n2 |
T/F | → | 0/1 |
“string1” | → | “string2” |
'symb' | → | 'NOT symb' |
See also: | AND, OR, | XOR |
|
|
|
Type: Command
Description: INFORM Place Holder/Result Command: Place holder for reset and initial values in