Command:

NEXTPRIME(145)

 

 

 

Result:

149

 

 

 

 

See also:

ISPRIME?, PREVPRIME

 

 

 

 

 

 

 

 

 

NIP

RPL command

 

 

 

Type:

 

 

 

Description:

Drops the (n–1)thargument, 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 LLNIP

( °is the leftshift of the

Nkey).

 

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 –3 before executing NOT) to produce a numeric result from the algebraic result.

Access: TEST LNOT

( °is the leftshift of the Nkey).

ÃL LOGIC NOT

(Ã is the rightshift of the 3key).

Flags: Numerical Results (–3), Binary Integer Wordsize (–5 through –10)

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

 

 

 

NOVAL

Type: Command

Description: INFORM Place Holder/Result Command: Place holder for reset and initial values in userdefined dialog boxes. NOVAL is returned when a field is empty.

3156 Full Command and Function Reference

Page 276
Image 276
HP 50g Graphing manual Nip, Not, Noval, Access ! Test L not Is the leftshift of the Nkey, Is the rightshift of the 3key