Full Command and Function Reference 3-109
Input/Output:
Level 3/Argument 1 Level 2/Argument 2 Level 1/Argument 3 Level 1/Item 1
m v x
→
ndist(m, v, x)
See also: UTPN
NDUPN
Type: RPL command
Description: Duplicates an object n times, and returns n.
Access: !°
STACK !«NDUPN ( °is the left-shift of the Nkey).
I
STACK !«NDUPN
Input/Output:
Level 2 Level 1
Level
n+1
… Level
2
Level
1
obj n
→
obj … obj n
See also: DUP, DUPDUP, DUPN, DUP2
NEG
Type: Analytic function
Description: Negate Analytic Function: Changes the sign or negates an object.
Negating an array creates a new array containing the negative of each of the original elements.
Negating a binary number takes its two
's complement (complements each bit and adds 1).
Negating a graphics object “inverts” it (toggles each pixel from on to off, or vice-versa). If the
argument is PICT, the graphics object stored in PICT is inverted.
Access: … ß
NEG ( ß is the right-shift of the 1key).
!´L
COMPLEX L NEG ( ´ is the left-shift of the Pkey).
W
Flags: Numerical Results (-3), Binary Integer Wordsize (-5 through -10)
Input/Output:
Level 1/Argument 1 Level 1/Item 1
z
→
–z
#n
1
→
#n
2
[ array ]
→
[ –array ]
'symb'
→
'–(symb)'
x_unit
→
–x_unit
grob
1
→
grob
2
PICT
1
→
PICT
2
See also: ABS, CONJ, NOT, SIGN
NEWOB
Type: Command
Description: New Object Command: Creates a new copy of the specified object.
NEWOB has two main uses:
• NEWOB enables the purging of a library or backup object that has been recalled from a port.
NEWOB creates a new, separate copy of the object in memory, thereby allowing the original
copy to be purged.