Reference Guide

3-154 Full Command and Function Reference
NDIST
Type: Command
Description: Normal Distribution Command: Returns the normal probability distribution (bell curve) at x
based on the mean m and variance v of the normal distribution.
NDIST is calculated using this formula:
ndist m v x, ,( )
e
x m( )
2
2v
-------------------
2πv
---------------------=
Access: !´L
PROBABILITY
L
NDIST
( ´ is the left-shift of the Pkey).
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
Example: To make a list of 100 “X”s, run
"X" 100 NDUPN →LIST
.
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